Scratch
Beginner
60 mins
Teacher/Student led
+140 XP

Scratch: Loops, Events and Finding the Bug

Pupils build the Frog Frenzy game in Scratch, adding a loop and click events so a frog hides and reappears at random, then find and fix bugs when the program misbehaves.

Teacher Class Feed

Load previous activity

    1 - What We're Building ~5 mins

    Every game you play on a screen was built by someone writing instructions for the computer to follow. Today you become that person! We're going to build a game called Frog Frenzy, where a frog keeps popping up in random places and you have to click it fast to score points.

    Tip

    Just like real programmers, you'll watch it demonstrated on the board first, then build each piece yourself and run it to see what happens. When something doesn't work the way you expect, that's not a disaster — finding and fixing those problems is a huge part of what coders do every day.

    2 - Introduction ~2 mins

    Welcome to the Frog Frenzy game! In this game, a frog will appear and disappear at random positions. Your task is to click on the frog to score points. Let's start coding!


    3 - Create a New Project ~2 mins

    First, let's create a new Scratch project and delete the cat sprite. We'll be using a frog sprite for this game.


    4 - Add the Forest Backdrop ~2 mins

    Next, add the Forest backdrop to your project. This will be the setting for our game.


    5 - Add the Frog Sprite ~2 mins

    Now, add the Frog sprite to your project. This will be the character that we will be interacting with in our game.



    Pupil practice · Investigation Journal
    Module 4 · Technology: What Technology Does, IPO and Coding Foundations
    Lesson 29 · Scratch: Loops, Events and Finding the Bug
    Download Investigation Journal sheet (PDF)
    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