Learn Create Your Own Split Screen

Next Page

What we've created here does bounding-box collision detection -- checking to see if the rectangular bounds of the two images overlap.

Scratch pays attention to transparency, and we could do that too, but it's a bit too complicated just at the moment. Bounding-box is a pretty good approximation, and works well with squares and even extreme rectangles too.