FREE Live Master Session: Code Your AI Companion for Kids

    Register for Free →

    Build Your First Scratch Game

    July 11, 2026

    games

    🍎 Build a Catch the Apple Game in Scratch

    In this beginner-friendly Scratch tutorial, you'll learn how to create a fun game where a basket catches falling apples. Along the way you'll understand events, loops, variables, collision detection and game logic.
    Kids learning coding
    Kids learning programming using Scratch.

    Step 1: Open Scratch Editor

    Visit the Scratch website and click Create. Remove the default Scratch Cat because we'll use our own sprites.
    Scratch editor
    Scratch editor where we'll build the game.

    Step 2: Add Basket and Apple Sprites

    Choose a Basket sprite and an Apple sprite from the Scratch library. Resize them if required and position the basket at the bottom of the stage.
    Sprites
    Basket and Apple sprites ready for coding.

    Step 3: Move the Basket

    Use keyboard events so that pressing the left and right arrow keys moves the basket across the screen.
    basket.txt
    When Green Flag Clicked
    Forever
    If Right Arrow Pressed
    Change X by 10
    If Left Arrow Pressed
    Change X by -10

    Step 4: Make the Apple Fall

    Continuously move the apple downward. When it reaches the bottom, send it back to the top at a random X position.
    Apple falling
    The apple falls from random positions.

    Step 5: Increase the Score

    Whenever the basket touches the apple, increase the score by one and move the apple back to the top.
    score.txt
    If Touching Basket
    Change Score by 1
    Go to Y = 180
    Go to Random X
    💡 Challenge: Increase the apple speed every 5 points to make the game more exciting.

    Play the Finished Project

    Scratch Project Embed

    Test Your Knowledge

    Quick Quiz

    Which Scratch block is used to keep repeating actions?

    Frequently Asked Questions

    Frequently Asked Questions

    Yes. Scratch is completely free and developed by the MIT Media Lab.
    Yes. You can share your project publicly using your Scratch account.
    Absolutely. Scratch is specifically designed for beginners aged 7 and above.
    Build Your First Scratch Game | TeacherColab Blog | TeacherColab