Computer Science Canada

How do you rotate a sprite?

Author:  sarm2005 [ Mon Mar 10, 2008 5:01 pm ]
Post subject:  How do you rotate a sprite?

Title says it all.

Author:  Sean [ Mon Mar 10, 2008 5:18 pm ]
Post subject:  Re: How do you rotate a sprite?

Since I am guessing you are using a picture, look into Pic.Rotate

Author:  sarm2005 [ Mon Mar 10, 2008 5:40 pm ]
Post subject:  Re: How do you rotate a sprite?

I've already converted the pictures into sprites to make it easier to move them. So how do you rotate the sprites.

Author:  Sean [ Mon Mar 10, 2008 5:45 pm ]
Post subject:  Re: How do you rotate a sprite?

They are still pictures, you just made the moveable, Pic.Rotate is the way to go.

Author:  sarm2005 [ Mon Mar 10, 2008 6:04 pm ]
Post subject:  Re: How do you rotate a sprite?

I've already made them into sprites with Sprite.New and would like to rotate these sprites rather than Pic.Rotate and creating a new sprite.

Author:  Sean [ Mon Mar 10, 2008 6:57 pm ]
Post subject:  Re: How do you rotate a sprite?

You can't rotate the sprite on its own. You must use Pic.Rotate and redraw it. Sorry, thats the only way I know how to do it, unless Tony knows of another way.

Author:  sarm2005 [ Mon Mar 10, 2008 7:39 pm ]
Post subject:  Re: How do you rotate a sprite?

Ok, thanks. Guess that's the only way to go.


: