How To Make A Sprite Fly In Scratch

This is a step to step guide, explaining how to make a sprite fly in Scratch. In this post, in the end, we will learn how to make a sprite fly. You will need a sprite which has costumes to make a sprite fly. Before we begin, you will need an account in Scratch. If you don’t have one then, head to how to create an account in scratch.

Choose a Character

You can make anything fly!

How To Make A Sprite Fly In Scratch 1

Click the icon that looks like this  to choose a character:

How To Make A Sprite Fly In Scratch 2

Click the ‘Flying’ theme, then select the character you want:

How To Make A Sprite Fly In Scratch 3
How To Make A Sprite Fly In Scratch 4

Or, click the paintbrush to draw your own character.

Want a character that looks like you? Make your own avatar on the Powerpuff Yourself website.

How To Make A Sprite Fly In Scratch 5

Then, click the folder icon to upload the image from your computer. Want to delete a character? Click the scissors tool then click the character.

How To Make A Sprite Fly In Scratch 6

Tip: In Scratch, characters are called ‘sprites’.

Prepare to Fly

Build a script to tell your character to say something:

How To Make A Sprite Fly In Scratch 7

You can type in your own words.

Click the green flag to start your script:

How To Make A Sprite Fly In Scratch 8
How To Make A Sprite Fly In Scratch 9

Your script will look something like this:

How To Make A Sprite Fly In Scratch 10

Add Scenery

How To Make A Sprite Fly In Scratch 1

Click this icon  to choose a new sprite:

How To Make A Sprite Fly In Scratch 12

Pick a sprite for your character to fly by, such as buildings or trees.

How To Make A Sprite Fly In Scratch 13
How To Make A Sprite Fly In Scratch 14

Drag the building or another sprite to the right-side of the Stage, like this:

How To Make A Sprite Fly In Scratch 15

Tip: Adjust the size of a sprite by clicking with the grow or shrink tool:

How To Make A Sprite Fly In Scratch 16

Switch Looks

If your building or scenery has more than one costume, you can switch between looks.

How To Make A Sprite Fly In Scratch 17

Add to your script like this:

How To Make A Sprite Fly In Scratch 18

Tip: Click the Costumes tab to see the sprite’s costumes.

How To Make A Sprite Fly In Scratch 19

Click the Scripts tab.

Your script will look something like this:

How To Make A Sprite Fly In Scratch 20

Click the green flag to start your script:

How To Make A Sprite Fly In Scratch 8

Paint the Sky

You can change the colour of the sky.

How To Make A Sprite Fly In Scratch 22

Click the  icon to open the Backdrop library:

How To Make A Sprite Fly In Scratch 23

Choose a plain backdrop, such as ‘blue sky2’ or ‘purple’.

How To Make A Sprite Fly In Scratch 24
How To Make A Sprite Fly In Scratch 25

You can use the paint bucket tool to change the colour of your backdrop.

How To Make A Sprite Fly In Scratch 26

Tip: Use a plain background to help make your character look like it’s flying.

Make It Interactive

Make your character move when you press a key.

Select your sprite by clicking on its thumbnail:

How To Make A Sprite Fly In Scratch 27

Add these scripts to make it move up and down:

How To Make A Sprite Fly In Scratch 28

Tip: Type a minus sign (-10) to move down.

Try it! Press the up and down arrow keys on your keyboard:

How To Make A Sprite Fly In Scratch 29
How To Make A Sprite Fly In Scratch 30

Add Things in the Sky

Add clouds, hearts, unicorns, or other floating things in the sky!

How To Make A Sprite Fly In Scratch 1

Click this icon  to choose a new sprite:

How To Make A Sprite Fly In Scratch 12

To make it float, build a script like this:

How To Make A Sprite Fly In Scratch 33
How To Make A Sprite Fly In Scratch 34

Click the green flag to try it out: 

Here’s an example with clouds floating across:

How To Make A Sprite Fly In Scratch 35

Customize and Enhance

What else do you want to add? Try some of these ideas.

MOVE LEFT AND RIGHT

Add these scripts to move your character using the left and right arrow keys:

How To Make A Sprite Fly In Scratch 36

COLLECT THINGS

Make a sound every time you touch something.

How To Make A Sprite Fly In Scratch 37

Click the green flag to try it out.

How To Make A Sprite Fly In Scratch 8

ADD SCORE

Create a variable for keeping score.

How To Make A Sprite Fly In Scratch 39

Then add the score blocks to your script:

How To Make A Sprite Fly In Scratch 40

EDIT YOUR CHARACTER

You can edit your character to make it look more like it’s flying.

Click the Costumes tab.

Click the ‘Add’ button to add a magic carpet or other object to your character

How To Make A Sprite Fly In Scratch 41
How To Make A Sprite Fly In Scratch 42
Trushil Shah

Author: Trushil Shah

My name is Trushil Shah and I am 10 years old. I live in Australia, a multicultural country. I have a little sister. Here are many things I like to do, to see, and to experience. I like to play sports, study, do technology experiencing, go out into the world, read, write, see the lunar eclipses by a glimpse, share time with my family, code in scratch and most of all have fun. I like flowers in spring, rain in summer, leaves in autumn, and snow in winter. I want to be a doctor or engineer when I grow up. I like many different types of food. My favourite subject of all is Maths. I am always trying to do my best. Whatever I do I want to do best.

1 thought on “How To Make A Sprite Fly In Scratch

Leave a Reply

Your email address will not be published. Required fields are marked *