Archived

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

Negativecreep0

Direct Draw and rotating a sprite.

Recommended Posts

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

Share this post


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

Share this post


Link to post
Share on other sites