Free Scratch Course for Kids: Build Your First Game in 5 Steps

Scratch is a free coding language from MIT where you snap blocks together instead of typing code. It's the best first step for kids aged about 7 to 11. In this free course your child builds a complete game, Catch the Apple, in five short steps.
Get started (free)
- Open scratch.mit.edu in a web browser and click Create.
- Optional: ask a parent to make a free Scratch account so you can save projects online. You can also save to your computer without an account.
Blocks live on the left, the stage (where your game plays) is on the right, and you drag blocks into the middle area to build scripts.
Step 1: Add a bowl you can move
- Hover over the cat icon at the bottom right and choose a new sprite. Search for Bowl and add it. Delete the cat sprite (the bin icon) if you like.
- Select the Bowl and build this script:
when green flag clickedgo to x: 0 y: -150(the bottom middle of the stage)
- Add two more scripts to move it:
when right arrow key pressed→change x by 15when left arrow key pressed→change x by -15
Click the green flag and try the arrow keys. You just wrote your first program.
Step 2: Make an apple fall
- Add the Apple sprite.
- Build this script on the Apple:
when green flag clickedgo to x: (pick random -200 to 200) y: 170foreverchange y by -5
The apple starts at a random spot across the top and keeps falling. pick random is in the green Operators section.
Step 3: Catch it and score points
- In Variables, click Make a Variable and name it
score. - Change the Apple's script so the inside of the
foreverloop reads:change y by -5if touching Bowl? thenchange score by 1go to x: (pick random -200 to 200) y: 170
- Just under
when green flag clicked, addset score to 0.
Now each catch adds a point and the apple restarts at the top.
Step 4: Missed it? Game over
Inside the forever loop, add a second if block:
if y position < -170 thensay "Game over!" for 2 secondsstop all
(y position is in Motion and the < block is in Operators.)
Step 5: Make it harder as you go
Replace change y by -5 with change y by (-3 - score). Build it with the - block from Operators. The more apples you catch, the faster they fall.
Challenges
- Add a Backdrop and a sound when you catch an apple (
start soundin Sound). - Add a second falling object, like a rock, that takes away a point.
- Give the player 3 lives instead of instant game over, using a
livesvariable. - Show "You win!" when the score reaches 20.
What your child just learned
Events (when key pressed), coordinates, loops, conditions, variables and randomness: the same core ideas behind every video game and app, and the same concepts they'll later write in Python.
Keep going for free
- The Tutorials button inside Scratch has dozens of free guided projects.
- Code.org has free, self-paced courses and Hour of Code activities.
- Ready for text coding? Try our free Python course for kids.
Want a live teacher to guide the next steps? See our Scratch course or book a free trial class.
Written by
CodingChamp Curriculum Team
Trainers and curriculum designers
Written by the team that designs and teaches CodingChamp's live 1:1 classes in Scratch, Python, web development and AI for school students, drawing on what we see in classes every week. About CodingChamp
