Jump to content
  • Advertisement
Sign in to follow this  
Hekmawful

Smooth player movements?

This topic is 2118 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites
Advertisement
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;

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!