SCRATCH GOLD II
SCRATCH GOLD I
2 of 3

6.02 Move the player sprite

Start by creating a player sprite that can move around your world.

Open the ‘Create your own world’ Scratch starter project.

Online: open the online starter project at create-your-own-world-on.

Pressing the arrow keys should move the player sprite around. When the up arrow is pressed, the player sprite should move upwards on the Stage in response.

Add this code to the player sprite:

Click the flag and then hold down the up arrow. Does the player sprite move up?

To move the player sprite to the left, you need to add another if block with similar code:

Add more code to your player sprite so it can move down and to the right as well. Use the code you already have to help you.

×
×

Cart