In my game, the speed of the ball increases by a certain number every 15 seconds when the game has started. Right now I have an int
which is the speed of the ball and the the method:
ballSpeed += 1;
This works but when I decrease the amount that the ball speed is increased by, which is going to be less than 1, for some reason it doesn't work.
For example, if I do:
ballSpeed += .9
, for some reason it doesn't work.
I thought that I just couldn't see the difference because it was too small but when i have .99 it still doesn't work and I would be able to tell the difference with that number.
Any answer is greatly appreciated.
Thanks