The Timer object provides a time-centered callback for your game. The "recur" property allows you to have a Lua function called on a regular basis. The "interval" property determines the time length between callbacks. It must be greater than 0 or the timer will fail to start.

An active timer will keep running even after you lose all Lua references to it. It will continue raising the callback event until the garbage collector kicks in. Therefore, always stop your timers before you unreference them.