Second Grade · Getting Started with Scratch Coding

Lab 6: Reach Home

Tell your sprite what to do when it makes it home safely.

  1. Step 1: Notice home

    You already know how to check for a wall. Now check for Home.

    Video coming soonSay hooray when you reach home

    Reach home

    when green flag clicked
    forever
    if touching Home ? then
    say You made it home! for 2 seconds
    change color effect by 25
  2. Step 2: Add a sound

    Add a happy sound when your sprite arrives.

    Add a sound

    start sound Pop

    In the Sounds tab, choose a sound from the library. Put the start sound block inside the if.

  3. Step 3: Stop the game

    When the sprite is home, the game is over. Tell Scratch to stop.

    Finish

    stop all
  4. Step 4: Play and fix

    Play your whole project. Ask a friend to try it too. Fix anything that does not work.

    1. Does the sprite start in the same spot each time?
    2. Does it say Oops! and go back when it bumps something?
    3. Does it celebrate when it gets home?
  5. Step 5: Press H to go to the middle

    Add the H key one more time. Now you can test your whole game fast. Press h, and the sprite is back in the middle.

    Press H to go to the middle

    when h key pressed
    go to x: 0 y: 0

Finished?

Great work! Pick what comes next.

For grown-ups: computational thinking in this lab

Parallelism Two scripts run at the same time: one for steering, one for checking. Children do not need the word, but they see it work.

Reuse The bump check and the home check are the same pattern. Children reuse an idea.

Grown-ups: how did this activity go? Send us feedback

For teachers

Plan about 30 to 40 minutes. Watch the video together, then let children build. Check the notes for teachers and parents for account options.

Read the full notes for teachers and parents