Direct Draw and rotating a sprite.

Started by
0 comments, last by Negativecreep0 22 years, 1 month ago
Hey guys I have a little questions here. I was playing one of my favorite games and it seems there is a heatsinking missle in the game which travels till it finds a enemy. On its route the sprite turns faceing the direction its going. My questions is, can this be done by just rotating one rocket sprite according to its travel. Or must I have different rocket sprites pointing in different directions. By the way if you guys can''t tell Im a newbie to Directx and mostly game programming. So please let me know if this can be done and maybe how. Thanks guys
Advertisement
If you use DirectDraw7 from DirectX7 (the last version where DirectDraw is supported) you will need different sprites for the different positions.
You can use DirectX8 and D3DXSprite interface to rotate a single sprite.



Rusenec
Rusenec

This topic is closed to new replies.

Advertisement