1
Graphics / sprite.move makes sprite disappear
« on: April 09, 2011, 09:48:42 am »
Use time-based movement rather than frame based movement.
I.e. get the amount of time passed since the last frame (there's a function in sf::Window for this) and multiply your values with that. Assuming your values are "move this amount per second".
I.e. get the amount of time passed since the last frame (there's a function in sf::Window for this) and multiply your values with that. Assuming your values are "move this amount per second".