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

Scratch Platformer

This lesson guides you through creating your own platformer game using Scratch. You'll design characters, create platforms, and write code to control character movements. Learn how to apply gravity, enable character movement, and add effects like jumping and trailing. By the end, you'll have a fully functional game to play and improve upon.
Learning Goals Learning Outcomes Teacher Notes

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 Scratch Platformer lesson! In this lesson, you will learn how to create your very own platformer game using Scratch. You will design your own characters, create platforms for them to move on, and write code to control their movements. Let's get started!


    2 - Create a new Scratch project

    Go to the Scratch website, create a new project and delete the cat sprite.

    3 - Create your sprite

    In the game you will control a sprite that moves through the platforms.

    Paint a new sprite and give it two costumes, one costume with the eyes looking right (call this costume "right") and one costume with the eyes looking left (call this costume "left").

    You can design your sprite however you wish but for this example we will just use a simple box character with eyes.



    4 - Create the 'platform' sprite

    We will create a sprite that has the platforms that our character will move through. This platforms sprite will have multiple costumes and each costume will have a different set of platforms.

    For now just create the new sprite and call it 'platform'. Design the first costume with a box that covers all of the bottom of the screen.

    In a later step, we will create some more costumes of this sprite with different platforms.



    5 - Resize your character

    You may need to resize your character so it will fit properly in the game. If you do add the following code and play around with the size value until you get your character about the same size as the picture with this step.

    Add the following code to your character sprite:

    when green flag clicked set size to [20] %


    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