The boss fight

Try itThe boss and the ending

Here is the boss's script. It uses an idea from every chapter.

​
​
if
end
repeat times
end

How to read it

The script has three rules.

RuleWhat the boss does
when I startSets its count to 0, and walks its room.
when I see the {Hero}Shouts, and chases the hero.
when I get hitAdds 1 to the count. If the count is over 5, it gets angry and fast. Then it jumps twice and chases again.

Look for each idea. @hits is the variable. if @hits is over 5 is the choice. repeat 2 times is the loop. The three when lines are the events.

Fight it

  1. Press Play Play this script, under the little game.
  2. Click the little game, so the keys work.
  3. Wait for the boss to come close. Press X to swing the sword.
  4. Step back while it jumps. Then swing again.

After the sixth hit, the boss says "Now I am angry!" and moves faster.

Give it to your boss

  1. Press Copy Copy, at the bottom of the script in the code box above.
  2. Press Open your game here, in the builder below, and go to level 3.
  3. Press Select Select, click your boss, and press Character scripting Character scripting.
  4. Press Code Code. Take out the script that is there, and paste yours in.
  5. Press Save Save.

Then change it. Pick your own words for it to say, and your own number of hits before it gets angry.

This makes a new game in your Lab and opens the builder right here. It is free.

This section ticks itself when you press Play Play this script in the code box.

Press Play in the code box to finish this section.