โ† Back to Blog Scratch Games

๐ŸŽฎ Maya Catches Robbie! A Scratch Game Tutorial for Kids

Maya Catches Robbie Scratch tutorial

๐ŸŒŸ What You'll Make

Maya will chase Robbie around the screen. Each time she catches him, Maya scores a point. When she scores 5 points, she wins the game! ๐Ÿ†

๐Ÿ‘‡ Read each step, then scroll down to the Coding Lab and drag the blocks to build your game!

๐Ÿงฉ Step 1: Add Your Sprites

Robbie

In the lab, click on Robbie.

๐Ÿงฉ Step 2: Make Robbie Move

Drag these blocks to Robbie's code area:

when ๐Ÿ clicked
forever
move 10 steps
if on edge, bounce

This will make Robbie run around the screen!

๐Ÿงฉ Step 3: Add Your Sprites

Maya

Now click on Maya.

๐Ÿงฉ Step 4: Control Maya

Drag these blocks to Maya's code area:

when ๐Ÿ clicked
forever
go to mouse pointer

๐Ÿ‘‰ Now you can move Maya!

๐Ÿงฉ Step 5: Catch Robbie

Stay on Maya and drag these blocks below the first ones. Start a second "when ๐Ÿ clicked" stack:

when ๐Ÿ clicked
set score to 0
forever
if touching Robbie
change score by 1
wait 1 seconds
if score = 5
say "I win!"
stop all

๐Ÿ‘‰ Each time Maya touches Robbie, she scores a point. At 5 points, the game ends with a win message!

๐ŸŽ‰ Step 6: Play Your Game!

Click the green flag and try to catch Robbie. Can you win by scoring 5 points? ๐Ÿ…

๐Ÿงช Your Coding Lab

Pick a sprite, then click a block on the left and it jumps to the right spot in the code area. Follow the steps in order! You can also drag blocks yourself, and drag a block back to the left to throw it away.

๐Ÿงฑ Blocks

Robbie's code

๐ŸŽฌ Stage

Build your code, then click the green flag!

โœจ That's it!

You've built a fun game with just a few blocks. Next, you can make it harder by speeding up Robbie or adding a timer.

โ† Back to all blogs