Speed up Platforms in Endless Runner
Sarahbush
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
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.
dapion.de
[https://twitter.com/dapionde?]
Thanks ill give that a go
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
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!
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
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 !