Gradually getting harder endless runner.

Hello! I'm just about done with my game! its an endless runner going in the direction of 180 (right to left). I have everything working perfectly but I don't know how to make the game gradually to get faster. I tried using a timer & I put move in direction 180 at a speed of 200 (I want that to be the min) and I want it to get to a speed of 1000 gradually though. Example Temple Run, you know how its very slow at the begin but with in 5-10 minutes it gets super fast but its a gradual pace (so you really can't notice it getting harder). I know there's a way that's why I came to you geniuses at gamesalad.

Thanks, Victor (PS I'm kinda new to gamesalad still)

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Create a game attribute called game.speed (integer). Set it to 200. In your rules that create movement, use game.speed in place of wherever you currently have the number 200. Then have an actor with a Timer set to every 10 seconds (or however often you want), change game.speed to game.speed+25. Try out different frequencies (every 20 seconds, etc.) and different addition amounts (+50, etc.).

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • http_gamesaladhttp_gamesalad Member Posts: 1,340

    @tating thanks you very much! it worked perfectly :smile:

  • http_gamesaladhttp_gamesalad Member Posts: 1,340

    @tating i came into a little problem if you have time to watch this youtube video it'll explane everything . Is there away to gradually interpolate the platform so it gets faster through out the game? if its not possible can you give me another solution for the platforms to stop sliding when the player collides?

    Thank you so much for your help so far!
    Victor :)

  • Pineal GamingPineal Gaming Member, PRO Posts: 12

    Hi, I got this working when using the move behaviour to move my platforms but then have the issue of the platforms moving right if player collides with them from the side, is there a way to stop my platforms moving sideways when colliding with the player when using this behaviour?

    I'm now trying interpolate to make my platforms move, then how would I set up the game.speed? As when it's currently set to 200, interpolate reads the game.speed as 200 (seconds) which is obviously too fast. I've tried setting my game.speed to 4 and have a timer on a actor to change game.speed-0.25 every 10 seconds, but this does not work. What am I doing wrong as I feel this is something simple but it's really frustrating me.

    I hope this makes sense.
    Thank you in advance!

  • UtopianGamesUtopianGames Member Posts: 5,692

    Our free template Santa Go! might help?

    Darren.

  • jay2dxjay2dx Member Posts: 611

    WOOOAAAHHHHHH hang on there sir! right to left "RIGHT TO LEFT" this i gotta see! mind blown! :D ha joking aside I've actually never played an endless runner hat right to left! so yeah looking forward to it haha :)

Sign In or Register to comment.