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

Guess the Picture

Can you guess what these blurry pictures are before they are revealed?

In this project we will create a game where blurry pictures appear and slowly get clearer and clearer. The aim of the game is to guess what the picture is before it becomes completely clear!

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 - Create a new Scratch project

    Create a new Scratch project and delete the cat sprite.

    2 - Save and upload the picture sprite

    Included with this step is a file called 'scgtp pictures.sprite3'. This is a sprite file that has three different costumes which are photos of a rhino, a melon and a bird.

    Right click on the link and choose 'Save link as' to save it onto your computer (keep a note of what folder you save it into).

    Then in Scratch, upload the sprite into your project as a new sprite.

    3 - Create the lists

    We will need two lists in this game, one list for the questions (e.g. "is it a rhino or elephant?") and one list for the answers (e.g "the answer is a rhino").

    Create two lists:

    • one list called questions
    • one list called answers

    Once you've created the lists, add the following code to setup the questions and answers. Note that the order of the questions matches the order of the answers.

    whenclickeddeleteallofquestionsaddelephant or rhinotoquestionsaddmelon or orangetoquestionsaddbird or beetoquestions

    whenclickeddeleteallofanswersaddrhinotoanswersaddmelontoanswersaddbirdtoanswers

    4 - Create the picture variable

    We will also need a variable to store which picture we are currently showing in the game.

    Create a variable called picture.

    5 - Create a custom block called 'show picture'

    Next we will create a custom block called 'show picture'. We will program this block to:

    1. Choose a picture
    2. Make it very blurry
    3. Ask the question (by getting the right question from the list for the picture)
    4. Slowly make the picture clearer and clearer
    5. Show the answer once it's fully clear
    6. Show the next picture

    Once you've created the custom block, add the following code to show the first picture.

    whenclickedsetpictureto1showpicture

    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