Learn Create Your Own Split Screen

Next Page

Fortunately we can use our doctrine of "inspired laziness".

There's a really easy way to achieve our goal with very little work.

The plan is we'll make another image which looks like a finish-line. It'll be as high as our canvas, and we'll create it as a MySprite.

Here's the clever bit: we'll add the finish line to the pipes array.

"But it's not a pipe!," you exclaim.

True enough. But by treating it as a pipe:

We just need to be careful to give it an x-position just beyond that of the final pipe.