Psych Engine Logo
Psych Engine - Lua Script API

Timer Functions

Functions to create timers for many purposes.


runTimer

runTimer(tmrTag:String, ?time:Float = 1.0, ?loops:Int = 1):String

Starts a timer that calls "onTimerCompleted" when it ends.
Returns the formatted Timer tag.

Examples:


cancelTimer

cancelTimer(tmrTag:String):Void

Cancels a Timer created with "runTimer".

Examples: