SCRATCH GOLD II
SCRATCH GOLD I
2 of 3

5.06 Spaceship explosion

When a hippo touches your spaceship, the spaceship should explode!

Select the Spaceship sprite and rename its costume ‘normal’.

Draw another costume of an exploding spaceship, and call the new costume ‘hit’.

screenshot

If you don’t want to draw the explosion, you can select the ‘Sun’ costume from the Scratch library, and then use the Color a shape tool to change the costume’s colour and face.

screenshot

Add some code to your Spaceship sprite so that it displays the ‘normal’ costume when the game starts, and switches to the ‘hit’ costume when it touches a hippo:

rocket sprite

Test your code. Make the spaceship collide with a hippo. Does the spaceship change to the ‘hit’ costume?

×
×

Cart