Order matters

ReadingSteps in order

In the last chapter you learned that a script is a list of steps. Now for the next big idea: the order of the steps matters.

Two dances

Here are two scripts. They have the very same steps.

when I start
  hop left 1 block
  say "Ta-da!"
  jump
when I start
  jump
  say "Ta-da!"
  hop left 1 block

The first slime hops, shouts, then jumps. The second slime jumps, shouts, then hops. Same steps, new order, new dance.

Why order matters

Think about getting dressed. Socks, then shoes. If you swap the order, you get a mess.

A script is the same. The slime always starts at the top and works down. It never tidies the order for you.

If you wantPut it
A step to happen firstAt the top
A step to happen lastAt the bottom
A step to happen in betweenBetween the two

Finish this section

Tick Finished reading at the bottom of the page. Then press Next to build a dance of your own.