Voxel Game Maker

Docs Cookbook

Timer

On the start of the race (an object or a Rule), When touches it.

#Without code

  1. On the start of the race (an object or a Rule), When touches it.
  2. Then Start timer: Timer Time, Seconds 60, tick Show on screen.
  3. When it runs out: lose, win, nothing or script.
  4. At the finish line: When touches it, Then Stop timer and Win the game (or a Show banner).

Quick code:

start_timer("Time", 60, "lose")
-- at the finish line:
stop_timer("Time")
banner("Made it with " .. time_left("Time") .. " s left!")