Scratch
60 mins
+395 XP
What you need:
Chromebook/Laptop/PC or iPad/Tablet

Flying Animation

In this lesson we will program a cat to run, jump and fly through the air while background scenery flies by.

Unforunately we can't broadcast a live class today but we do have this previously recorded class from our archives! You can watch the video and complete the steps to make a flying animation!!
Teacher Notes 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, we will use the cat sprite that's added by default.

    2 - Colour the backdrop blue

    We're going to colour the backdrop blue to make it appear like the sky.

    1. Click on the backdrop underneath the stage area to select it.
    2. Then click on the 'Backdrops' tab to open the backdrop editor.
    3. Click the 'Conver to Bitmap' button.
    4. Select the paint bucket tool.
    5. Choose a sky blue colour.
    6. Click anywhere on the backdrop and it will change to blue.

    3 - Upload and add the ground sprite

    At the beginning our cat will be standing on the ground so we need to upload a 'ground' image as a new sprite.

    Included with this lesson is a file called 'flan ground.sprite3' that we're going to upload into our Scratch project. Download the file onto your computer and then upload it into your project.

    Once you've uploaded it, the new ground sprite appear in the stage area.


    If for some reason you can't save the sprite file to your computer and upload it, you can just use this starter project which already has the sprite added to it. https://scratch.mit.edu/projects/576644340/editor/

    4 - Make the cat run

    At the start the cat should appear on the left, middle of the stage area so add the following code to the cat:

    whenclickedgotox-185y0showgotofrontlayer

    We use the show and the go to front blocks as we will be hiding this sprite in a later step and also it needs to appear in front of the ground sprite.

    Next program the cat to start running when it is clicked, add the following code to the cat:

    whenthisspriteclickedrepeat50move5stepsnextcostumehidebroadcastjump

    We hide this sprite and send a message at the end because we're going to use a different sprite for the flying animation.


    5 - Move the ground

    To make it look like our cat is jumping in the air, we're going to make the ground start moving down. As the cat will be staying in the same place it will look like it's jumping in the air.

    First place the sprite at the correct position for the start, add the following code to the ground sprite:

    whenclickedgotox0y-30

    Next add the code to move the sprite downwards when it receives the jump message:

    whenIreceivejumprepeat100changeyby-2broadcastfly


    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