Scratch Silver III
Scratch Silver II
SCRATCH SILVER I
SCRATCH GOLD III
1 of 3

2.02 Animating a spaceship

Your first step will be to create a spaceship that flies towards the Earth!

Open a new Scratch project.

Online: open a new online Scratch project at scratch-new.

Add ‘rocketship’ and ‘Earth’ sprites to your Stage.

Spaceship and Earth sprites

Click on Choose a Sprite to open the Sprite Library:

The 'Choose a Sprite' icon highlighted.

You can search for a sprite, or browse for one by category. Click on a sprite to add it to your project.

The Sprite Library.

Add the ‘Stars’ backdrop to your Stage.

A space backdrop

Click on your spaceship sprite, and click on the Costumes tab.

Sprite costume

Use the arrow tool to click and drag a box around the whole spaceship image. Then click on the circular rotate handle, and rotate the image until it is on its side.

Rotating a costume

Add this code to your spaceship sprite:

Spaceship sprite

Change the numbers in the code blocks you’ve added so that the code is exactly the same as above.

If you click the green flag, you should see the spaceship speak, turn, and glide towards the centre of the stage.

Testing a spaceship animation
×
×

Cart