Jump three times
Try itDoing it again
This slime jumps three times, then tells you it is done.
Press Play
Press Play
, under the little game. Count the jumps: one, two, three. Then the slime says "Done!"
How it works
| Line | What it does |
|---|---|
repeat 3 times | Go round the loop 3 times. |
jump and wait 1 second | The steps inside. Done each time round. |
end | The loop stops here. |
say "Done!" | Not inside the loop. It happens once, after the loop has finished. |
Change the number
- Press Stop
. - Look at the top left of the code box. Press Blocks
. - Find the repeat block. Beside its number are - and +.
- Press + two times, so it says 5.
- Press Play
. Count five jumps.
You changed one number, and the slime did two more jumps. That is what a loop is for.
This section ticks itself when you press Play.

