Scratch
Beginner
40 mins
Teacher/Student led
115 points
What you need:
Chromebook/Laptop/PC or iPad/Tablet

Virtual Pet

In this lesson, students will create a virtual pet using Scratch. They will learn how to add a sprite, change its size and colour, and make it move and make sounds. 
Learning Goals Learning Outcomes Teacher Notes Lesson Files

Live Class Feed

This is a live feed of the latest activity by your students on this lesson. It will update in real-time as they work on the lesson.
Load previous activity

    1 - Introduction

    Today, we are going to create our very own virtual pet using Scratch. We will learn how to add a sprite, which will be our pet, change its size and colour, and even make it move and bark! Are you ready to start this coding adventure? Let's go!


    2 - Create a new project

    Open the Scratch website and create a new project. Delete the cat sprite from the project.

    scratch.mit.edu


    3 - Add the sprite Dot

    First, let's add a sprite for our pet. Click on the 'Choose a sprite' button and select Dot from the list.



    4 - Add the backdrop Boardwalk

    Now, let's add a backdrop. Click on the 'Choose a backdrop' button and select Boardwalk from the list.


    5 - Make your pet bigger

    Let's make our pet bigger when we press the up arrow key. To do this, we will use the change size by block. This block allows us to change the size of our sprite. In this case, we will increase the size by 10 each time the up arrow key is pressed.

    Here is the code you need to add to your sprite:

    when [up arrow v] key pressed change size by (10)

    Once you've added this code, click the green flag to start your program and press the up arrow key. You should see your pet grow bigger! If it doesn't, double-check your code to make sure it matches the one above.


    Unlock the Full Learning Experience

    Get ready to embark on an incredible learning journey! Get access to this lesson and hundreds more in our Digital Skills Curriculum.

    Copyright Notice
    This lesson is copyright of DigitalSkills.org. Unauthorised use, copying or distribution is not allowed.

    Scratch is developed by the Lifelong Kindergarten Group at the MIT Media Lab. It is available for free at https://scratch.mit.edu
    🍪 Our website uses cookies to make your browsing experience better. By using our website you agree to our use of cookies. Learn more