SFML community forums

Help => Graphics => Topic started by: Meok on January 14, 2012, 12:40:22 pm

Title: Sprite Movement
Post by: Meok on January 14, 2012, 12:40:22 pm
Hey guys, I've been messing around with SFML for a little while now, don't consider myself any good at it or programming in general but I'll keep on trucking.

I was thinking of a way to move a sprite, with the speed increasing over time, so lets say I hold down d to make my sprite move right across the screen, it starts of slow and gradually picks up speed until the maximum limit is reached.

It may seem like a novice question but I just want to know how this would be done, is it a simple loop or a bit more complex?
Title: Sprite Movement
Post by: Nexus on January 14, 2012, 12:56:19 pm
This very basic question seems to be quite popular. Use the search function:
http://www.sfml-dev.org/forum/viewtopic.php?t=6724
http://www.sfml-dev.org/forum/viewtopic.php?t=6654
http://www.sfml-dev.org/forum/viewtopic.php?t=6730