How to rotate a sprite?

Discuss any general programming issues here
Post Reply
ilbarbax
Posts: 117
Joined: Thu Apr 01, 2010 6:41 pm

How to rotate a sprite?

Post by ilbarbax »

There is not a function equivalent to RotateBrush for sprites?
jalih
Posts: 276
Joined: Fri Jun 18, 2010 8:08 pm
Location: Finland

Re: How to rotate a sprite?

Post by jalih »

I don't think there is... You probably need to add desired pre-calculated rotations as frames, when you create the sprite.
User avatar
lazi
Posts: 627
Joined: Thu Feb 24, 2011 11:08 pm

Re: How to rotate a sprite?

Post by lazi »

There is not a function equivalent to RotateBrush for sprites?
Keep in mind that sprite IS NOT brush!

You can rotate brush and then convert it to sprite. CreateSprite(id, #BRUSH,....)
Post Reply