i need to make a movement system in a 2D game where character moves in a direction when you press a button (like some kind of start), and when he starts moving the speed increase costantly, something like Jetpack Joyride or Temple Run for example.
how can i do it?
Maybe you could increment your speed variable at the end of each frame by the Update() method.
Like this :
// movement code using speed variable
speed += speedIncrement;
I can’t really understand your code because i don’t speak your language so i don’t know if that’s what youre doing.