SETTICK

command

Call a SUB every period milliseconds. period 0 disables the tick.

SETTICK period, handler [, slot]

period - interval in milliseconds (0 disables) handler - SUB name slot - 0 to 3 (default 0)

The period is measured from the moment the handler runs, not from the moment it was due. A late handler therefore pushes every later tick back by the same lateness (drift). For exact timing, compare a “due” time against TIMER in the handler instead of relying on the period alone.

Example:

SETTICK 10, GameTick

Source: docs/help/settick.txt inmmcore. On the computer, typeHELP SETTICK.