Scratch
Intermediate
50 mins
Teacher/Student led
+65 XP
What you need:
Chromebook/Laptop/PC or iPad/Tablet

How to code a story

We've all read stories before and even come up with our own, but how do you code a story in Scratch? In this lesson we go through what you need to know.

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 - New project in Scratch

    For this lesson we're going to create a simple baseball story to help us understand the different story telling things we can do in Scratch.

    Open the Scratch website and create a new project. Delete the cat sprite.

    2 - Setting

    The first thing to think about for a story is the "when" and the "where", this is called the setting.

    In Scratch we use the backdrop to set the scene. Add the "Baseball 2" backdrop to your project.


    3 - Characters

    After setting the scene we now need to add the characters that are in our story.

    Add the "Pitcher" and the "Batter" sprites to your project from the sprite library.



    4 - Plot

    The plot is the events that happen in our story. You can split a plot into the beginning, the middle and the end.

    In our baseball story the plot will be:

    Beginning
    The characters joke with each other.

    Middle
    The pitcher throws the ball and the batter hits it

    End
    The ball is seen flying through the air and then space!

    5 - The pitcher speaks

    The pitcher is going to start our story off by saying "Here comes the speed!"

    Add the following code to the Pitcher sprite:

    whenclickedgotox:-150y:0 this puts him in the correct positionsayHere comes the speed!for2seconds

    Click on the green flag to test your code.


    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