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
|
  |
| 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 |
|
|
|
| 27 Jul 2012 08:20 PM |
| Touched could be inefficient for this type of problem. |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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 |
|
|
| |
|
|
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|