Learn Create Your Own Split Screen

Next Page

In Scratch, if we wanted to make something else fall as well, we'd have to make another sprite.

Javascript doesn't have sprites. If you want another rectangle falling, just draw another rectangle.


Try adding more shapes, changing their position, changing the speed.

Can you make one rectangle be slightly ahead of the other?

(Hint: instead of drawing the rectangle at 'y_pos', you'd draw one of them at 'y_pos+30' or some other amount)