Smooth player movements?
Members - Reputation: 107
Posted 29 August 2012 - 08:40 PM
This is a good idea, time delta is widely used in geometry transforms like rotation and translation.
yes you can animate a sprite and interpolate each frame as an animation, and move using delta time.
this link is for c++ but you can get the idea http://www.programme....com/2/time-fps
currentpos += dir*deltatime;
Members - Reputation: 133
Posted 29 August 2012 - 10:02 PM
you need to keep adding acceleration over time to the velocity of the object changing its position until it reaches the final target location.
"Oh, God, I'm nervous. Two of my three hearts are having attacks." -Zoidberg