SCRATCH GOLD II
SCRATCH GOLD I
2 of 3

6.04 Crashing!

At the moment, the boat sprite can simply sail through the wooden barriers! You’re going to fix that now.

You need two costumes for your boat sprite: one normal costume, and one for when the boat crashes. Duplicate your boat sprite’s costume, and name one costume ‘normal’ and the other ‘hit’.

Click on your ‘hit’ costume, and use the Select tool to grab pieces of the costume and move and rotate them to make the boat look like it has crashed to pieces.

screenshot

Now add code to your boat so that it crashes and breaks up when it touches any brown wooden barriers.

You should also add code to make sure that your boat sprite always starts out looking ‘normal’.

Test your code again. If you try to sail the boat through a wooden barrier now, the boat should crash and then move back to its starting position.

screenshot
×
×

Cart