Learn Create Your Own Split Screen

Next Page

We can enhance our mouse-handling too, so we only leave a trail when the left mouse button is down.

The steps for doing this are:

You may notice if you move the mouse quite quickly, the line drawn is somewhat spotty. We're going to fix that with a more sophisticated drawing program, but first we're going to introduce a new way of storing variables.