Meet the code widget

Try itWelcome

This is a code box. Almost every chapter has one.

The script is on the left. A script is a list of things for a character to do. A little game is on the right. That is where you try the script.

Press Play

Press Play Play this script, under the little game. Then watch the enemy.

What happened?

The script belongs to the enemy. The enemy did just what the script says.

The script saysSo the enemy
when I startwaits for the game to start
say "Hello!"says Hello! in a speech bubble
patrolwalks back and forth

You do not have to remember these words. You learn them one at a time, starting in the next chapter.

Play with it

You can not break a code box, so try things.

Try thisHow
Move the heroClick the little game. Then use the arrow keys to walk and jump.
Stop the gamePress Stop Stop. Press Play Play this script to start it again from the beginning.
Change what the enemy saysPress Stop. Click Hello! in the script and type new words. Then press Play.
See the script as blocksPress Blocks Blocks, at the top left of the code box. Press Code Code to go back.

This section ticks itself when you press Play.

Press Play in the code box to finish this section.