As a student, I've always wanted to become a game developer. So far I've managed to learn the basics of C++ and SFML 2.1
For my first project, upon deciding to make a 2D RPG-ish game, I encountered a problem that the game loop refreshes so quickly that if I move them by 1 pixel per frame, the sprite will move more quick than I intended to.
I implemented a frame-determined movement system(not sure what it's called) that whatever the fps is, the character moves at same speed.
However, I couldn't solve the problem(which is what I'm asking) that the sprite won't move smoothly. What's happening in my build is that the player will move about 1px per frame, and can be interrupted by other inputs. How can I do this?
TL;DR : I want to move my sprite like old-school RPG games, moving predetermined pixels(or tiles) smoothly.
update(or equivalent) member function is called, multiply your speed by the time that has passed. - OMGtechy