What is a script?

ReadingYour first script

A script is a list of steps for a character to follow.

Think of a recipe. It tells you what to do first, what to do next, and what to do last. A script does the same for a character in your game.

Your first script

Here is the script you will use in this chapter. It belongs to a slime.

when I start
  walk left 3 blocks over 4 seconds
  walk right 3 blocks over 4 seconds

The top line says when to begin. The two lines under it are the steps.

Three rules

Every script follows these rules. They never change.

RuleWhat it means
Top to bottomThe character starts at the top and works down.
One step at a timeIt finishes one step before it starts the next.
Just what it saysIt does what the script says. It never guesses what you meant.

Finish this section

Tick Finished reading at the bottom of the page. Then press Next to see the script run.