SCRATCH GOLD II
SCRATCH GOLD I
2 of 3

6.09 People

Add other people to your world who your player sprite can interact with.

Switch to the person sprite.

Person sprite

Add some code to the person sprite so that the person talks to the player sprite. This code is very similar to the code you added to your sign sprite:

person

Allow your person sprite to move by adding these two blocks in the else section of your code:

person

Your person sprite will now move, but will stop to talk to the player sprite.

screenshot

Add code to your new person sprite so that the sprite only appears in room 1. The code you need is exactly the same as the code that makes the sign sprite only visible in room 1.

Make sure you test out your new code.

×
×

Cart