2D animation help

Started by
0 comments, last by CadetUmfer 14 years, 11 months ago
Hi all I'm trying to render some 2D animation as part of the UI for my game. And I'm not sure how I should go about this. I've thought about using an array of different textures per frame to do animation, but I'm not sure if this is the best method. Also, how should I load the animation? from a bunch of pictures? from gif? are there any libraries out there that can help? any suggestions are welcome thank you
Advertisement
You should load 1 texture with all frames needed for the animation. Then it's just a matter of updating the texture coordinates each frame to switch animation frames at the appropriate rate.
Anthony Umfer

This topic is closed to new replies.

Advertisement