Scratch
Beginner
50 mins
Teacher/Student led
+170 XP

Variables and Input in Scratch

Students build a Paddle Ball Game in Scratch, introducing a score-style variable to control the ball's speed and using mouse input to move the paddle. Follows the PRIMM cycle with a focus on assignment and arithmetic operators (LO 1.7).

Teacher Class Feed

Load previous activity

    1 - Start: What We're Building ~5 mins

    You can already make a sprite move and react in Scratch. Today we'll go further: we'll build a Paddle Ball Game where a ball bounces around, you steer a paddle with your mouse, and the ball gets faster the longer you survive.

    We'll work the way we always do — predict first, then build, run and fix at your devices. Quick question to start: what is a variable, and why might a game need one?

    2 - Predict Before You Run ~10 mins

    Before anyone runs anything, look at what we're about to build and commit to a prediction. When the green flag is clicked, what will happen first? Where will the ball start, and what will move it? Tell your partner what you think you'll see — we'll come back to these predictions later.

    3 - Introduction ~3 mins

    Welcome to our exciting lesson on creating a Paddle Ball Game using Scratch! In this lesson, you will learn how to move sprites, use variables to control speed, change backdrops, and use sensing blocks. By the end of this lesson, you will have your very own Paddle Ball Game that you can play and share with your friends. Let's get started!


    4 - Create a New Scratch Project ~2 mins

    Create a new Scratch project and delete the cat sprite that's added by default.


    5 - Add the Paddle Sprite ~2 mins

    Add the sprite called 'Paddle' from the sprite library.

    Drag the paddle to near the bottom of the stage area (by holding down the left mouse button and moving your mouse). Make sure to leave some space between the bottom of the stage area and the paddle (this is important later on as we'll be putting something there).



    123learn · Online learning platform

    Unlock the full learning experience

    You're previewing this lesson. Get full access to this lesson and hundreds more — each one ready to teach, with interactive activities, printable resources and pupil progress tracking built in.

    Hundreds of curriculum-aligned lessons
    Interactive activities in every lesson
    Printable resources & progress tracking
    Copyright Notice
    This lesson is copyright of Coding Ireland 2017 - 2025. 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