Learn Create Your Own Split Screen

Next Page

The effect we're aiming for looks like this:

 

One obvious and simple approach would be to draw-up an image with diagonal bands on it, make the image really wide -- say 3000 pixels wide, put it in a MySprite and set an x-velocity to let it slide itself to the left.

That would certainly work. But the problem is we're probably going to keep adding more and more pipes, to extend the game piece by piece. We'd have to keep making our stripe image wider and wider, and if we ever failed to make it sufficiently wide, we'd have the embarrassing situation of seeing it exit to the left and disappear.

We want to create the illusion of a moving stripe that never runs out.