Archived

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

gobelair

Loading animations(DX9)

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