Learn Create Your Own Split Screen

Next Page

First we'll learn how to rotate.

The closest thing in Scratch are these blocks:

Those Scratch blocks also control which way the sprite will move, but for the moment we're only concerned with how it appears rotated.

You've doubtless also rotated images in whatever image editing software you've used (Photoshop or whatever).


The key to this stuff in Javascript is that you don't change your image, you change the way the image is shown.