Speed up endless runner?

Triangularity GamesTriangularity Games Founder/OwnerMarylandMember Posts: 140

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_dennisowen_dennis Just a guy, you know. Posts: 236
    edited August 2015 Accepted Answer

    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

Sign In or Register to comment.