◀ Arcade

Girl Scouts · Coding for Good

Scratch Starters

2 projects to finish at home

These are the projects from our coding meeting. Each one is started for you: the pieces are there, and three tasks tell you how to snap them together. Try the finished version right here, then build it yourself.

  1. Download a starter. Use the yellow buttons below. The file ends in .sb3.
  2. Open Scratch. Go to scratch.mit.edu and click Create. Free, and you do not need an account. The Scratch app works too.
  3. Load the file. Click File, then Load from your computer, and pick the starter. A computer or tablet works best. A phone screen is too small.

Project 1 · Start here

Animate Your Character

Ten characters are waiting in a meadow. Pick one and bring it to life with a loop, a walk, and a rule.

The finished project

Press the green flag to see what the finished code does.

  1. Task 1

    Loop: make it come alive

    Drag forever from the Parts Bin and snap it under switch costume. Put next costume and wait 0.2 seconds inside it. Click the green flag. A loop repeats the same steps again and again.

    The pink outline shows what you add. The rest is already there.

  2. Task 2

    Walk

    Put move 10 steps and if on edge, bounce inside the forever too. Now your character walks across the stage and turns around at the edge.

  3. Task 3

    Rules: pick one, or do both

    IF / THEN (Juniors). Put if then inside the forever. Drop touching edge? in its slot and start sound inside it. That is a condition: the sound plays only IF the edge is touched.

    WHEN (Brownies). Snap say Hi! under when this sprite clicked, then click your character on the stage. That is an event. Change the words to your character’s name!

  4. Make it yours

    • Faster: change 0.2 to 0.1. Bigger steps: change 10 to 20.
    • Rainbow: from Looks, put change color effect by 25 inside the forever.
    • New scene: click Stage (bottom right), then the Backdrops tab. Try space or the dance floor.
    • Your own character: hover over the cat button at the bottom right and pick Paint.

Project 2 · A whole game

Maze Game

Collect the emergency supplies and get to the community center, but do not touch the walls. You write the rules that make it a game.

The finished project · play it

Press the green flag, then steer with the arrow keys.

  1. Task 1

    Move

    Click the Player in the sprite list. The up arrow script is built. Right-click it, pick Duplicate, and make three more. Each one is an event: it runs WHEN its key is pressed.

    The pink outline shows what you add.

  2. Task 2

    Wall rule

    Drag the empty if then into the forever. Drop touching Walls? into its slot and go to x: y: inside it. Now IF you touch a wall THEN you go back to the start.

  3. Task 3

    Win rule

    Drag the second if then into the forever, under the first one. Drop touching Goal? into its slot. Put say You made it! and stop all inside it. Can you win your own game?

  4. Make it yours

    • Too hard? Make the Player smaller (the Size box under the stage), or change 5 to 3.
    • New look: click the Costumes tab and pick the robot or the star.
    • Change the maze: click the Walls sprite, then Costumes. Move or delete wall squares.
    • Challenge: make the community center count only when Score = 3.

Coder words

Sequence
Steps in order, top to bottom.
Loop
Repeat. The forever block is a loop.
Event
WHEN something happens, a script starts.
Condition
IF this is true, THEN do that.
Bug
A mistake in a program. Finding and fixing it is debugging. Every coder does it every day.

For grown-ups

Saving. In Scratch, File then Save to your computer keeps her work as a new .sb3 file. No account is needed for that.

Sharing online needs a free Scratch account. A girl under 13 signs up with a parent’s email. Shared projects are public, so keep names and faces out.

Stuck? Each Block Finder shows the finished scripts and which color every block lives under. Sit beside her, not in front, and ask “what will happen?” before she tests.