Jump to content
  • Advertisement

Archived

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

Tszafran

Time Based Sprite Animation

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

Hi, I am drawing 2D sprites using the D3DXSprite class and my FPS is around 210, I was wondering how to do animations that will be fluid at all frame rates. Right now my 16 frame animation goes way too quickly, I am doin it this way so far everyframe: Surface.CurrentFrame++; Draw(Surface) As you can see it will go through the frames as fast as the frame rate is. How can I do it so that it is fluid in all frame rates? Thanks, for any help in advance.

Share this post


Link to post
Share on other sites
Advertisement
It would be a good idea to implement a timer so that you can have framerate independant animation.

Regards,
Sharky

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!