Sprite Animation

Started by
0 comments, last by vbisme 23 years, 9 months ago
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?
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

ICQ: 130925152Email: e.j.folkertsma@student.utwente.nl

This topic is closed to new replies.

Advertisement