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| Line | What it tells the slime |
|---|---|
when I start | Begin when the game starts. |
walk left 3 blocks over 4 seconds | Walk 3 blocks to the left. Take 4 seconds to do it. |
walk right 3 blocks over 4 seconds | Then 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.
| Part | In this step | What it is |
|---|---|---|
| What to do | walk | The action. |
| Which way | left | The direction. |
| How far | 3 blocks | A number. |
| How long it takes | over 4 seconds | Another 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.

