Jump to content

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Smooth player movements?

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
3 replies to this topic

#1 Hekmawful   Members   

104
Like
0Likes
Like

Posted 28 August 2012 - 01:46 PM

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?

#2 Exessuz   Members   

141
Like
0Likes
Like

Posted 28 August 2012 - 02:57 PM

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;

#3 zdd   Members   

107
Like
0Likes
Like

Posted 29 August 2012 - 08:40 PM

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.

#4 StrangeTurtle   Members   

133
Like
0Likes
Like

Posted 29 August 2012 - 10:02 PM

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.

"Oh, God, I'm nervous. Two of my three hearts are having attacks." -Zoidberg
Site: http://www.strangeturtle.com





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.