Awesome Aviation Free Scratch Coding Activity

Surreal digital artwork of a giant whale serving as a hot air balloon, suspending a small yellow airplane through the clouds.

We’ve put together a step-by-step coding guide for children to have a go at coding their own flying game in Scratch.

  1. 1

    Go to the Scratch website: https://scratch.mit.edu/

  2. 2

    Sign in or register for Scratch

    If you already have a Scratch account, click ‘Sign in’ and enter your login details. Otherwise click ‘Join Scratch’ and create your free Scratch account.

  3. 3

    Open this starter file: https://scratch.mit.edu/projects/895082458/

  4. 4

    Click the “Remix” button to make your own copy

    Image to illustrate step 4
  5. 5

    Click on the "Plane" sprite to make sure it is selected

    Image to illustrate step 5
  6. 6

    Now drag blocks in from the left to add your first code...

    This code means that your plane will always follow the mouse pointer

    Image to illustrate step 6
  7. 7

    Click the Green Flag to see how the plane follows your mouse

    Image to illustrate step 7
  8. 8

    Next let's make a cool effect by adding some exhaust to the plane.

    In this code we are "cloning" the Plane sprite, but when we make the clones we change the costume. As the clones appear, then quickly disappear, they'll look like an exhaust trail.

    Image to illustrate step 8Image to illustrate step 8
  9. 9

    Click the Green Flag to test out your project so far!

    Image to illustrate step 9
  10. 10

    Now let's make this a game by activating the "Coin" sprite. Click on the Coin to select it.

    Image to illustrate step 10
  11. 11

    We will use cloning for this sprite as well. Add this code to create a new coin every second.

    Image to illustrate step 11
  12. 12

    Next, add this code so that each coin will appear at the top of the stage. We are going to make them fall down and try to catch them!

    The "pick random" block will make each coin fall from a different spot.

    Image to illustrate step 12
  13. 13

    Now you can add this loop to make the coins fall down from the sky.

    Each coin will be deleted when it reaches the bottom of the screen.

    Image to illustrate step 13
  14. 14

    Press the Green Flag to test it out!

    Can you see the coins falling?

    Image to illustrate step 14
  15. 15

    Let's catch some coins - add this code so that the score starts at 0, but then increases when the plane touches a coin.

    Image to illustrate step 15
  16. 16

    All done! Click the Green Flag icon and watch your project come to life.

    Image to illustrate step 16

Thanks for building a game with us!

If you enjoyed this coding activity be sure to sign up for our online coding classes for kids. Our coding classes are a lot of fun, but they’re also really effective at teaching coding techniques and challenging students to develop their skills. You’ll learn about loops, variables and functions - and everything in between - and you’ll build your own games and animations with a small group of kids of the same age and experience level as you.

Sign up for one of our free coding lessons