SCRATCH GOLD II
SCRATCH GOLD I
2 of 3

6.08 Obstacles and boosters

Right now the game is far too easy, so you will add some things to make it more interesting.

First, you’ll add some boosters to speed up the boat.

Edit your Stage backdrop by adding in some white booster arrows.

screenshot

Now add more code blocks to your boat’s forever loop so that the boat sprite moves three extra steps when it touches a white arrow.

Test your game to see whether your new booster arrows speed up the boat.

Next you’ll add a spinning gate that the boat has to avoid.

Add a new sprite that looks like this, and call it ‘gate’:

screenshot

Make sure that the colour of the gate sprite is the same as the colour of the wooden barriers.

screenshot

Make sure that the centre of the gate sprite is positioned in the middle.

screenshot

Add code to your gate sprite to make it spin slowly forever.

Test your game again. You should now have a spinning gate that you need to stir your boat around.

screenshot
×
×

Cart