I'm having trouble using floating numbers in my game. It's an on rails game. In the game, the platforms move from right to left instead of the character.
The platforms move according to a global speed variable, runSpeed, which starts at a value of 1.
Then I've said, "restrict actions for 5 seconds > Add 0.1 to runSpeed".
When I try adding 0.1 to the runSpeed, rather than all of the platforms speeding up evenly, they all start moving at different speeds creating a very strange effect which I don't like.
What I want is for the runSpeed variable to increase gradually so that it doesn't suddenly lurch and become faster.
Is anyone able to explain to me the mistake I'm making?