Speed up Platforms in Endless Runner

SarahbushSarahbush Member, PRO Posts: 55

Hi there ! Can anyone help - I'm trying to speed up my platforms in an endless runner game (i watched both of Jamies Cs tutorials on endless runner) the one where you spawn the platforms..

I can't work out how to slowly increase the speed of the platforms whilst playing - can anyone help?

Thanks Sarah

Comments

  • dapiondapion Member, PRO Posts: 353

    What´s about a screen rule?
    If you start the game, run a timer. In this you have a global (integer) attribute (speed).
    Every 2 second change attribute to self+5 or what else.

    Than constrain your spawning platforms with this (speed) attribute.

  • SarahbushSarahbush Member, PRO Posts: 55

    Thanks ill give that a go :)

  • SarahbushSarahbush Member, PRO Posts: 55

    i can't seem to get that to work it ends up spawning loads of platforms on the screen in the middle .. ah ill keep trying to figure it out :neutral:

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    Hi Sara, those tutorials use a Move Behavior to move the platforms. They start out moving the platforms at a speed of 200. If you want this speed to increase over time you'll need to create a new Game Level Attribute to be used as the speed value. You can then increase this attribute over time to make the platforms mover more quickly. Something like this:

    Create a Game Level Integer Attribute named Speed and set it to 200.

    In the Move Behavior of the platforms change the Speed from 200 to the Attribute named Speed.

    In the tutorial I use an actor called Controller to control some elements of the game, add a Timer Behavior to this actor that says:

    Every: 1 seconds
    Change Attribute Speed to Speed +1

    This set of behaviors should increase the speed at which the platforms move on screen. You can adjust the Timer as needed to get the effect you want of course.

    Also keep in mind, the speed of the platforms will effect how the game feels. At some point the player may not be able to make the jumps needed, they platforms may move too quickly to even play. So adding this 'feature' will mean you'll likely need to make other possibly un-planned at the moment edits to the game. But that is the fun of game development! :)

  • SarahbushSarahbush Member, PRO Posts: 55

    Thanks again Jamie! Although I'm not moving the move behaviour its the Interpolate so I'm just trying to figure out how to do that... Your way seems great though and I wish i could have figured it out ! :)

Sign In or Register to comment.