Jump to content
  • Advertisement
Sign in to follow this  
sj721

2D animation help

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!