The boss fight
Try itThe boss and the ending
Here is the boss's script. It uses an idea from every chapter.
How to read it
The script has three rules.
| Rule | What the boss does |
|---|---|
when I start | Sets its count to 0, and walks its room. |
when I see the {Hero} | Shouts, and chases the hero. |
when I get hit | Adds 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
- Press Play
, under the little game. - Click the little game, so the keys work.
- Wait for the boss to come close. Press X to swing the sword.
- 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
- Press Copy
, at the bottom of the script in the code box above. - Press Open your game here, in the builder below, and go to level 3.
- Press Select
, click your boss, and press Character scripting
. - Press Code
. Take out the script that is there, and paste yours in. - Press Save
.
Then change it. Pick your own words for it to say, and your own number of hits before it gets angry.
This section ticks itself when you press Play
in the code box.

