Jump to content
  • Advertisement

Archived

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

gobelair

Loading animations(DX9)

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

Im working on a 2D (mortal combat/tekken like game) and I''m making a animation class with sprites. In DirectX 9 with C++. But I don''t know how to load all the texturs. I''ve got 72 textures(256 * 256 in *.bmp files) for one character. That are 6 animations 12 frames per animation. Should I load all the textures in a big array from IDirect3DTexture9 objects. Or should I do something else? And what else. Can you plz tell me what to do or give me some exemples. Thanks in advance Gobelair

Share this post


Link to post
Share on other sites
Advertisement
loading in an array should be just fine. then you can just change the index for which frame you''re at.

Share this post


Link to post
Share on other sites
Ya, I''d try using an array first, or if the number of animations/frames is different depending on the character, use a vector instead.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!