generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: How do you make a brick that goes on forever?

Previous Thread :: Next Thread 
zol366 is not online. zol366
Joined: 20 Feb 2011
Total Posts: 4883
27 Jul 2012 08:17 PM
If I wanted to make a game like Temple Run, where the road never ends, how to I do that? Also I wasn't sure whether to put this in scripting or building help, but I figured you would need some kind of script. It would be nice if somebody could provide me with a script or tell me how to make one. Thank you!
Report Abuse
TNTxERIC is not online. TNTxERIC
Joined: 20 Nov 2010
Total Posts: 2689
27 Jul 2012 08:19 PM
You would have to use a script to spawn parts then position them using a touched function

Report Abuse
Swordphin123 is not online. Swordphin123
Joined: 09 Apr 2008
Total Posts: 5234
27 Jul 2012 08:20 PM
Touched could be inefficient for this type of problem.
Report Abuse
TNTxERIC is not online. TNTxERIC
Joined: 20 Nov 2010
Total Posts: 2689
27 Jul 2012 08:23 PM
I'm assuming he is trying to make temple run, so I think that once you reach a certain distance, it would add to the track. It won't go on "forever" just as long as you want too, or you can just go ahead and build a huge track.

Report Abuse
DXPower is not online. DXPower
Joined: 21 Oct 2008
Total Posts: 2866
27 Jul 2012 08:36 PM
You could use an MC system like chunks, when the pass a certain point, load a new bit of terrain in front of them. When they leave that "chunk", you can remove it.

Time to update this siggy, to this: !
Report Abuse
TNTxERIC is not online. TNTxERIC
Joined: 20 Nov 2010
Total Posts: 2689
27 Jul 2012 09:00 PM
@DX that works if one person is playing, or if there are more than one course
Report Abuse
DXPower is not online. DXPower
Joined: 21 Oct 2008
Total Posts: 2866
27 Jul 2012 09:13 PM
No, you can have multiple people. Just have a big for loop that detect when somebody is in what chunk and to load what chunks to load around it, working on something similar to that right now, so it is possible.

Time to update this siggy, to this: !
Report Abuse
TNTxERIC is not online. TNTxERIC
Joined: 20 Nov 2010
Total Posts: 2689
27 Jul 2012 09:30 PM
@DX oh yes never thought of that. But that would be hard to do.
Report Abuse
DXPower is not online. DXPower
Joined: 21 Oct 2008
Total Posts: 2866
28 Jul 2012 07:50 AM
Nope. Just use Region3 and a few functions with it.

Time to update this siggy, to this: !
Report Abuse
TNTxERIC is not online. TNTxERIC
Joined: 20 Nov 2010
Total Posts: 2689
28 Jul 2012 03:30 PM
@DX I tried using Region3 once; didn't work vgery well but that was a few nonthes ago
Report Abuse
Dynamite2787 is not online. Dynamite2787
Joined: 02 Jan 2010
Total Posts: 8081
28 Jul 2012 03:31 PM
Result = LAGGGGG
Report Abuse
Bob123456789103570 is not online. Bob123456789103570
Joined: 23 Dec 2008
Total Posts: 9531
28 Jul 2012 04:24 PM
I just tried to make Temple Run. I'm currently debugging.

My path script is currently at four hundred lines, but if you want to do it, go ahead. :-)
Report Abuse
Bob123456789103570 is not online. Bob123456789103570
Joined: 23 Dec 2008
Total Posts: 9531
28 Jul 2012 04:28 PM
Also, I don't know what you are trying to use Region3 for. I don't see any plausible way to create a path using a selection. :X
Report Abuse
zol366 is not online. zol366
Joined: 20 Feb 2011
Total Posts: 4883
08 Aug 2012 11:54 AM
Well, I'm actually not trying to make Temple Run. I'm trying to make a game called Zombie Highway. It's really popular in the App Store so I wanted to make a Roblox remake. In that game, the road goes on forever and you just have to get as far as you can.
Report Abuse
zol366 is not online. zol366
Joined: 20 Feb 2011
Total Posts: 4883
08 Aug 2012 12:01 PM
So if I make the max players 6, I could make each person go to a different road. Maybe even a controled spawn script to make 6 different lobbies. Then I could make it so that the "chunk" behind the player would get deleted. Of course I would also need lots of fog so the player wouldn't see the bricks disappear. But the road would have to reset when the player dies, or else as soon as he respawns, there would be no road. Would my theory work? If it does can anybody give me a script?
Report Abuse
TNTxERIC is not online. TNTxERIC
Joined: 20 Nov 2010
Total Posts: 2689
09 Aug 2012 08:54 AM
That should work as for the script; your gonna have to do that yourself :P
Report Abuse
zol366 is not online. zol366
Joined: 20 Feb 2011
Total Posts: 4883
10 Aug 2012 08:07 PM
Im a beginer scripter. :/ That's why I posted in the Helping forum.
Report Abuse
Blankscarface23 is not online. Blankscarface23
Joined: 12 Apr 2011
Total Posts: 1234
10 Aug 2012 09:19 PM
Heres what you could do, you could make a table then add a brick at certain parts, then when decided what was checked through the table keep regenerating the same kind of track but just at different Angles, i will demonstrate picking a random value out of the table then checking what was picked from the table. It is up to you to determine the positioning.

Angles={1,2,3,4,5}
Radians=Angles[math.random(1,#Angles)]
if Radians==1 then
--Load track cycle 1
elseif Radians==2 then
--Load track cycle 2
elseif Radians==3 then
--Load track cycle 3
elseif Radians==4 then
--Load track cycle four
elseif Radians==5 then
--Load track Cycle 4
--If you wanted to add more values then you would want to add more elseif's
--Well I hope this helped :)
--Blankscarface23
--Need anything else just PM me!
Report Abuse
pingasforce is not online. pingasforce
Joined: 20 Aug 2010
Total Posts: 115
10 Aug 2012 09:28 PM
Would be easy,but I don't think you would use Region3,because it is a Circle zone.
Report Abuse
StygianBlade is not online. StygianBlade
Joined: 15 Sep 2011
Total Posts: 426
10 Aug 2012 09:34 PM
Load the possible path/buildings/terrain up to a certain point and when the player gets far enough delete the old parts and spawn new ones.
Report Abuse
zol366 is not online. zol366
Joined: 20 Feb 2011
Total Posts: 4883
11 Aug 2012 10:21 AM
Thanks for all your help guys. Right now I'm learning how to script and CFraming and all that stuff, so when I've learned more, I'll come back to this forum and make the game. But for now, I'm still learning.
Report Abuse
Blankscarface23 is not online. Blankscarface23
Joined: 12 Apr 2011
Total Posts: 1234
27 Feb 2013 06:15 PM
I also have thought about it and what you most likely have to do is create the tracks beforehand and then call them until the player fails to continue(dies) or something like that. I thought about it while playing Subway Surfer and Temple Run. :p
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image