Execute an action after a certain time. The callback object is automatically destroyed. Must be used on a timer acquired with `getTimer()` Example use: | someTimer.doAfter(10.0) -> | print("10 seconds later")
Execute an action after a certain time. The callback object is automatically destroyed. Example use: | doAfter(10.0) -> | print("10 seconds later")
Execute an action after a certain time. The timer is accompanied by a visible timerdialog with the title text provided. The callback object is automatically destroyed. Example use: | doAfterWithDialogue(10.0, "Respawn in") -> | hero.revive() | print("10 seconds later")
Execute an action periodically. The callback has to be destroyed manually. Must be used on a timer acquired with `getTimer()` Example use: | someTimer.doPeriodically(0.5) cb -> | if i > 10 | destroy cb
Execute an action periodically. The callback has to be destroyed manually. Example use: | doPeriodically(0.5) cb -> | if i > 10 | destroy cb
execute an action periodically, with a limited amount of calls The callback object is destroyed after the action has been executed callAmount times. Must be used on a timer acquired with `getTimer()` Example use: | someTimer.doPeriodicallyCounted(0.5, 100) cb -> | doSomething()
execute an action periodically, with a limited amount of calls The callback object is destroyed after the action has been executed callAmount times. Example use: | doPeriodicallyCounted(0.5, 100) cb -> | doSomething()
execute an action periodically, with a limited duration The callback object is destroyed afterwards. Must be used on a timer acquired with `getTimer()` Example use: | someTimer.doPeriodicallyCounted(0.5, 10.) -> | doSomething()
execute an action periodically, with a limited duration The callback object is destroyed afterwards. Example use: | doPeriodicallyCounted(0.5, 10.) -> | doSomething()
Execute an action with a 0-second timer delay. The callback object is destroyed afterwards.
Returns a value between 0 and 1.