The coward
ChallengeMaking choices
This slime should be brave until it is hurt, and then run. But its two steps are on the wrong paths. Your job is to swap them.
What should happen
When the script is right, the game goes like this.
- The game starts. The slime is not hurt, so it chases the hero.
- The hero hits the slime once with his sword.
- The slime is hurt now, so it turns and runs away.
What happens now
The slime does the opposite. It runs away at the start, and chases the hero once it is hurt.
How to fix it
You change a step by picking a new one from a list.
- Look at the top left of the code box. Press Code
, if it is not picked already. - Find the line under if my health is 100. It says
run away 3 blocks. - Click the small arrow at the end of that line. A long list of steps drops down.
- In the list, click chase the {Hero}. The line changes.
- Find the line under else. It says
chase the {Hero}. - Click the small arrow at the end of that line.
- In the list, click run away 3 blocks.
Test it
- Press Play
, under the little game. - Click the little game, so the keys work.
- Wait for the slime to come close. Press the X key to swing the sword, once.
- Leave the slime alone and count to 6. The second goal is checked 6 seconds after the hit.
| If this goal has a cross | What to change |
|---|---|
| The coward chases the hero at full health | The line under if must be chase the {Hero}. |
| The coward runs away once it is hurt | The line under else must be run away 3 blocks. |
Press Stop
, check your two lines, and press Play again.

