Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Smoother animation

This topic is 6186 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

Hey everybody! I am trying to animate something moving across the screen, and getting faster and slower etc. Now, to make it go faster, my first thought was to increase the number of pixels it moves per frame, however, this leads to not-very-smooth animation, and unwanted jerkyness. You can see the object "skipping" from one place to another. I have thought about this, and the only answer I have come up with is to control the frame rate, however, this would lead to all kinds of other problems with the other moving objects, etc etc... So does anyone else out there know any way to get this smoother animation? Thanks very much for your help. Lor

Share this post

Link to post
Share on other sites

don''t tie your animation to the frame rate. If your object is moving 10 pixels per frame and you have a framerate of 30 fps then your object is moving at 300 pixels per second.

Work with that instead, maintain time based velociites and so on. On every update, multiply the velocity by the delta time.

Don''t have a fixed frame rate, render as fast as you can, and it''ll all run at the same speed on different systems even if frames are dropped.


Games, Anime and more at GKWorld

Meet Bunny luv'' and the girls, all ready to perform on your desktop just for you (warning: adult content).

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!