Hello.
I'm basically creating a game made if tiles/blocks.
The player moves like 1 tile, but that just looks bad.
Is there anyway to make it look like he walks to the tile position, like make an animation to the position?
Smooth player movements?
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.programmersheaven.com/2/time-fps
ej
currentpos += dir*deltatime;
this link is for c++ but you can get the idea http://www.programmersheaven.com/2/time-fps
ej
currentpos += dir*deltatime;
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
ej
currentpos += dir*deltatime;
This is a good idea, time delta is widely used in geometry transforms like rotation and translation.
Check out this basic physics flash movie. http://www.rodedev.com/tutorials/gamephysics/
you need to keep adding acceleration over time to the velocity of the object changing its position until it reaches the final target location.
you need to keep adding acceleration over time to the velocity of the object changing its position until it reaches the final target location.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement