Scratch Game
Beginner
60 mins
Teacher/Student led
145 points
What you need:
Chromebook/Laptop/PC or iPad/Tablet

Star Chaser

This lesson guides students through creating a fun game called 'Star Chaser'. They will learn how to use variables to keep score and how to create and control clones in Scratch. The game involves a character named Ripley chasing stars, with the score increasing each time a star is caught.
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

    Welcome to the 'Star Chaser' lesson! In this exciting lesson, you will create a fun game where a character named Ripley chases stars. You will learn how to use something called 'variables' to keep score and how to create and control 'clones'. Don't worry if you don't know what these terms mean yet, you will understand them by the end of this lesson. So, are you ready to start your coding adventure? Let's go!


    2 - Create a New Project

    Start by creating a new Scratch project and then delete the cat sprite as we don't need it for this project.

    https://scratch.mit.edu/


    3 - Add the Stars backdrop

    Add the Stars backdrop from the backdrop library.


    4 - Add Ripley

    Add the 'Ripley' sprite from the Scratch library to your project.



    5 - Shrink and Move Ripley

    Now let's change the size of Ripley and programming him to follow your mouse pointer. This will make Ripley look like he's chasing the pointer around the screen!

    To do this, you will use the set size to block to shrink Ripley, and the point towards and move blocks to make him follow the mouse.

    Add the following code to the Ripley sprite:

    when green flag clicked set size to (20) % forever point towards (mouse-pointer v) move (5) steps


    Once you've added this code, click on the green flag and test that Ripley moves and follows your mouse pointer.


    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 Coding Ireland. 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