Learn Create Your Own Split Screen

Next Page

Rotating to a specific angle is great, but what if we want our sprite to point towards something else -- another sprite, or the mouse-pointer?

Many Scratchers will have written projects that include this sort of logic:

Its purpose is just to keep a Sprite rotated so it's angled toward the mouse-pointer.

We're going to learn how to do that in Javascript, except we'll also make it work on touch tablets.