Learn Create Your Own Split Screen

Next Page

Scratch likes to keep sprites at least partly visible on the stage at all times. If you try to move a sprite too far off-stage, Scratch keeps the edge of it slightly visible. Scratch is trying to be helpful, but sometimes it gets in the way.

Javascript is quite different.

Try driving the cat a long way to the right -- off the canvas and even further.

Now drive it back to the left and you'll notice it won't immediately reappear until it's travelled all the necessary distance back.

With Javascript, it's possible for things to be located yards off the screen in any direction


(Remember to click on the canvas with your mouse so it gets the keystrokes)