Read it line by line

ReadingYour first script

Here is the slime's script again. This time, read it one line at a time.

when I start
  walk left 3 blocks over 4 seconds
  walk right 3 blocks over 4 seconds
LineWhat it tells the slime
when I startBegin when the game starts.
walk left 3 blocks over 4 secondsWalk 3 blocks to the left. Take 4 seconds to do it.
walk right 3 blocks over 4 secondsThen walk 3 blocks to the right. Take 4 seconds to do it.

Who is "I"?

The script is written as if the slime is talking. So I means the slime. When the script says when I start, the slime is saying "when I start".

The when line

The top line starts with when. It says when the steps should happen. Here they happen as soon as the game starts.

The steps

The steps are the lines under the when line. See how they are pushed in a little? That shows they belong to the when line above them.

Each step has four parts.

PartIn this stepWhat it is
What to dowalkThe action.
Which wayleftThe direction.
How far3 blocksA number.
How long it takesover 4 secondsAnother number.

What is a block?

The ground in the game is made of squares. Each square is one block. A block is about as wide as the hero.

Finish this section

Tick Finished reading at the bottom of the page. Then press Next.