Beat the clock

Try itSpeed and time

A countdown is a clock that runs down to zero. It turns a calm level into a race. This script gives the player 30 seconds.

​

How to read it

LinesWhat they do
when any {Heroes} entersWhen the level starts
start a countdown of 30 secondsA clock shows, and counts down
when the countdown endsWhen the clock gets to 0
level is lostThe hero loses a life and starts again

Try it

  1. Press Play Play this script, under the little game.
  2. Watch the clock count down from 30.

Make it shorter

  1. Press Stop Stop.
  2. Press Blocks Blocks, at the top left of the code box. There you can type any number.
  3. Change 30 to 5, then press Play Play this script.

Five seconds is over very fast. How do you choose a time that is fair? You measure, of course. That is the next section.

This section ticks itself when you press Play Play this script.

Press Play in the code box to finish this section.