Scratch lesson 7 of 10 · Early intermediate · About 35 minutes
Build a night-sky game with a moving catcher, falling star clones and a score that counts each catch once.
What you’ll make Use one Star sprite to make many temporary copies. Give each copy a random starting position, let it fall and remove it when its job is done.
Get ready
Open the Scratch editor (opens in a new tab) and start a new project.
- Open a new Scratch project. Paint a shallow basket sprite or choose and rename a sprite Catcher. A width of about 65 pixels and a height of about 25 pixels on the Stage work well.
- Add or paint a small, bright star and name the sprite Star. Aim for about 20 pixels across on the Stage. Choose a dark backdrop so the star stands out.
- Under Variables, choose Make a Variable, call it Score and select For all sprites. Tick its box if you want to see the score monitor on the Stage.
To keep your project, choose File → Save to your computer in Scratch.

Build it in Scratch
Choose the sprite named above each stack. The colours help you find the block categories. Indented rows sit inside the block above. Follow the end marker to see where each loop or condition closes.
1. Move the catcher left and right
Select Catcher. The starting point puts it near the bottom, with room for stars to fall above it. Inside the forever loop, add two Control if blocks. Each uses the green Operators and block to check two things together. The first check is a key press from Sensing. The second uses the blue Motion x position reporter and a green comparison block to keep the catcher away from the sides. Click the green flag and hold each arrow in turn. Only the horizontal position should change.
when green flag clickedshowgo to x: (0) y: (-130)foreverif <<key [left arrow] pressed?> and <(x position) > [-190]>> thenchange x by (-8)if <<key [right arrow] pressed?> and <(x position) < [190]>> thenchange x by (8)2. Make a hidden star factory
Select Star and make its green-flag stack. Resetting Score here gives every new round a clean start. Hide the original so players see only the falling copies. The orange Control block create clone of makes a copy, and its menu should say myself. Put the wait inside the loop so there is a pause between stars. At this point the clones are hidden too. The next stack gives each one a place to start and makes it visible.
when green flag clickedset [Score] to (0)hideforeverwait (0.8) secondscreate clone of [myself]3. Send each clone on its own fall
Still on Star, build a separate stack starting with when I start as a clone. Place the green pick random block inside the x slot. All stars begin near the top, but each chooses a new horizontal starting point. A negative change to y moves the clone down. Fit an or block into repeat until so it can stop for either reason. After it stops, check for a catch once. Then delete the clone whether it scored or missed. If your catcher has a different name, choose that name in both touching menus.
when I start as a clonego to x: (pick random (-188) to (188)) y: (145)showrepeat until <<touching [Catcher]?> or <(y position) < [-155]>>change y by (-5)wait (0.04) secondsif <touching [Catcher]?> thenchange [Score] by (1)delete this cloneTest your project
- Catch a star near the middle and another near one side. Each should disappear and add exactly one point.
- Deliberately miss a star. It should vanish near the bottom without changing Score. Leave the game running briefly and check that new stars still appear.
- Click the red stop button and then the green flag. The catcher returns to the centre, old clones clear and Score starts at zero.
If something goes wrong
- The sky stays empty.
- Check that the factory uses create clone of myself, then look for show in the separate clone stack. The original stays hidden.
- One catch adds more than one point.
- Move change Score by 1 below repeat until, inside the separate touching check. Keep delete this clone underneath that if block.
- A star gets stuck at the bottom.
- Use less than -155 for the y position check and put delete this clone below the if block so misses are removed too.
Make it your own
- Make the game gentler by trying a fall of -3 instead of -5. Test one change at a time so you can tell what made a difference.
- Add a short sound to Star. Inside the catch check, add hide after the score change, then play a sound until done. The caught star disappears at once and the clone is deleted after the sound.
What you’ve learned A clone is a temporary copy of a sprite. Each clone runs the clone stack with its own position. One shared Score variable lets all those separate stars add to the same total.