SCRATCH GOLD II
SCRATCH GOLD I
2 of 3

9.07 Control the goalie

It’s far too easy to score a goal! Let’s allow a second player to try and save goals.

Click on your Goalie sprite and add this code to change the goalie’s x position when the left arrow is pressed.

goalie sprite

Press the left arrow to test your new code. Your goalie should move to the left.

screenshot

Use blocks similar to the ones above to make the Goalie move to the right when the right arrow key is pressed.

×
×

Cart