Speed up endless runner?
There are many tutorials out there about how to make an endless runner...however none of them have just 1 platform. Im making an endless runner where there is only one platform (the ground) and i need it to endlessly generate. Also, I need it to speed up over time, but I'm not sure how to do this without throwing off the timing of the platforms (making gaps between them)? Thanks in advance.
Best Answer
-
owen_dennis Just a guy, you know. Posts: 236
Make a game.gamespeed attribute.
If you're spawning your platforms, have your platform's starting velocity be a speed + game.gamespeed. Then have a timer in a controller actors that says for every ___ seconds, increase game.gamespeed by game.gamespeed+1.
If you're recycling actors, I would make a rule inside the platform that says something like if linear velocity < game.gamespeed+speed, change linear velocity to game.gamespeed + speed.
Answers
I have an endless runner tutorial below that spawns one platform over and over if you want to check it out.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page