Loading animations(DX9)

Started by
1 comment, last by gobelair 21 years, 1 month ago
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
Advertisement
loading in an array should be just fine. then you can just change the index for which frame you''re at.
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.

This topic is closed to new replies.

Advertisement