๐ Lesson 1.3: Your First Project โ Make the Cat Move & Talk
Time to actually build something! In this lesson you'll code the Scratch cat to walk across the stage and say hello when you click the green flag โ your first real program.
๐ฏ Learning Objectives
By the end of this lesson, you will be able to:
- Drag, drop, and snap blocks together to build a script
- Start a program with the โwhen ๐ฉ clickedโ event
- Combine Motion and Looks blocks to make a sprite act
- Test, tweak, and troubleshoot a simple project
- Coach your child through building it themselves
Estimated Time: 40 minutes โข Project: a moving, talking cat
In This Lesson
๐ฌ What we're building
Here's the finished program. Don't worry about how yet โ this is our destination. When you click the green flag, the cat will walk to the right and greet you.
Three blocks. That's a complete, working program. Let's build it one block at a time.
๐ก Before you start
Open a fresh project at scratch.mit.edu โ Create. Make sure the cat (Sprite1) is selected in the sprite list, so your blocks land on the cat.
๐ Learn It: Build it step by step
-
Start with an Event
Click the gold Events category. Drag โwhen ๐ฉ clickedโ into the middle code area. This is the "hat" that starts your program.
when โ clicked -
Add some Motion
Click the blue Motion category. Drag โmove 10 stepsโ so it snaps underneath the hat block (you'll see a grey shadow when it's about to connect โ let go there).
when โ clickedmove 10 stepsNow click the green flag. The cat scoots a tiny bit! Ten steps is small โ we'll make it bigger soon.
-
Make it talk
Click the purple Looks category. Drag โsay Hello! for 2 secondsโ so it snaps below the move block.
when โ clickedmove 10 stepssay Hello! for 2 seconds -
Type your own words & a bigger move
Click the white oval that says Hello! and type your own message, like Hello! I'm Scratch Cat. Then click the 10 in the move block and change it to 50 so the walk is easier to see.
when โ clickedmove 50 stepssay Hello! I'm Scratch Cat for 2 seconds
โ That's it โ you built a program!
Click the green flag. The cat walks right and says hello. You just wrote software. ๐
๐ Learn It: Run & understand it
Click the green flag to run it; click the red stop to end it. Here's what happens, in order โ this ordering is called a sequence, the most basic idea in all of coding:
Scratch runs blocks top to bottom, one after another. Change the order and you change the behavior โ put "say" before "move" and the cat talks first, then walks. Try it!
๐ Cat stuck at the edge?
Each green-flag click moves the cat 50 more steps, so it may march off the edge. To send it back to the start, drag the cat on the stage with your mouse, or add a Motion block โgo to x: 0 y: 0โ right after the hat to reset its position each run.
๐ ๏ธ Try It: Make it yours
The best learning happens when you change things and see what breaks or delights. Try these mini-challenges:
๐จ Easy
- Change the message to a joke.
- Change 50 to 200 โ where does the cat end up?
- Add a second โsayโ block for a reply.
๐ฅ A bit more
- From Sound, add โstart sound Meowโ after the move.
- From Looks, add โchange size by 25โ.
- Add โturn โป 15 degreesโ for a tipsy walk.
๐ก Challenge: make the cat walk and look like it's walking
The cat has two costumes. Add a Looks block โnext costumeโ between move and say, and run it a few times โ the legs switch! (In Module 2 we'll make this loop smoothly for real walking animation.)
๐ Common problems & fixes
| What you see | Likely cause | Fix |
|---|---|---|
| Nothing happens on green flag | Blocks aren't snapped together, or wrong sprite selected | Check blocks connect with no gaps; select the cat in the sprite list |
| Cat moves but doesn't talk | The โsayโ block isn't attached under the others | Drag it until it snaps beneath the move block |
| Cat walks off-screen | It keeps moving 50 more each run | Add โgo to x: 0 y: 0โ after the hat, or drag the cat back |
| Cat is upside-down after turning | Rotation style | In the sprite info, set rotation to โleft-rightโ (we'll cover this later) |
Bugs aren't failures โ they're the normal, healthy middle of coding. Model calm curiosity: "Interesting! Why do you think it did that?"
๐ฌ Teach It: Coach your child through it
Now hand it over. You've done the build once, so you can guide without taking over. The magic words are questions, not instructions.
Run it as a treasure hunt, not a dictation
Instead of "drag the move block," try:
"We want the cat to walk. Which color do you think has moving blocks? โฆLet's look in the blue ones. See anything that says move?"
Let them own the fun parts
- The message is theirs. Let them type anything (within reason) in the โsayโ block โ this is where they light up.
- The number is theirs. Let them pick how many steps and discover big vs. small.
- The green flag is theirs. They press GO. Every single time.
๐ง Ages 5โ7
You handle the dragging if needed; they choose the words and press GO. Keep it to the three-block version. Celebrate loudly.
๐ง Ages 8โ11
They do all the dragging. Offer the "make it yours" challenges. Ask "what should happen next?" and let them lead.
๐ง Ages 12+
Give the goal, not the steps: "Make the cat cross the stage and say two things." Let them puzzle it out; jump in only if stuck.
๐ End on a high
Finish by having them show the project to someone โ a sibling, grandparent, a video call. Presenting their creation turns "I made a thing" into "I'm someone who makes things."
๐ฏ Quick Check
Question 1: Which block should be at the top of the script so it runs when you press the green flag?
Question 2: Scratch runs the blocks in a stackโฆ
Question 3: Your child's cat won't talk, though it moves. Best first check?
Summary & Module 1 Complete ๐
๐ Key Takeaways
- Programs start with an Event block like โwhen ๐ฉ clickedโ.
- You build by dragging blocks so they snap into a top-to-bottom stack โ a sequence.
- Combine Motion and Looks to make a sprite act; edit the white ovals to change words and numbers.
- Bugs are normal. Coach with questions and let your child own the creative choices.
๐ You finished Module 1!
You went from "what is this?" to building and teaching a real program. You are officially your child's coding buddy.
๐ What's next
Module 2: Core Coding Concepts is coming soon. We'll turn this one-time action into living behavior โ loops that repeat, events that respond to keys, and choices with if/then. Your cat is about to get a lot more interesting.