Run away

Try itMaking choices

The slime needs a second path, for when the answer is no.

if
else
end

What is new

The lines else and run away 3 blocks are new. They are the other path.

The slime's healthThe answerWhat it does
100YesChases the hero.
Less than 100NoRuns away.

Hit it once

  1. Press Play Play this script.
  2. Click the little game.
  3. Wait for the slime to come close.
  4. Press X to swing the sword, once.

The slime turns and runs. Its health is 67 now, so each second the answer is no, and each second it runs a bit further.

This section ticks itself when you press Play.

Press Play in the code box to finish this section.