Simple rotate sprite?

Hi everybody!
How do I rotate a sprite? Say for each right arrow rotate -pi/8 or whichever
thanks! HD

Great question jon (and welcome)!

I’ve wanted this too, but unfortunately, I don’t think there’s any built-in support for this yet.

However, @AlexK wrote an extension that does some sprite rotation: Having a Blast with MakeCode Arcade!.

The first time I needed rotation, I was able to just use the line drawing primitives in the Image drawer to achieve what I needed. More recently I had a very tiny racecar sprite that I wanted to rotate. The rotation extension didn’t do so great with my small image, though, so I ended up drawing 16 frames and selecting the closest one with math. But maybe the extension will work better for your use case.

1 Like

Ok thanks much for the speedy reply!