Jump to content
  • Advertisement

Archived

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

vbisme

Sprite Animation

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

Any one knows about sprite animation please help me. I''m being confused. If you need to create something like an Animation() function how does it work? Or do you just say blit frame one of dog to backbuffer; blit frame one of cat to backbuffer; flip; then go back for the rest of the frames or what?

Share this post


Link to post
Share on other sites
Advertisement
You will have to create an animation structure (preferably a class) that manages for each frame:

- Which frame it is in the animation
- How long the frame should be displayed
- How long the current time is
- The offset coordinates
- The special events
- Lots of other information that you need for your animations

Then you should embed a class called Draw (which automatically draws the animation) and one called update (which updates the animation... determines wheter to jump to the next frame and so on)

This will do the trick... thrust me

If you do not fully understand this... please feel free to mail me at mitolah@hotmail.com (Although I will not be able to respond before next Friday)

Dark

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!