View source
class FlxTimerManager
package flixel.util
extends FlxBasic
import flixel.util.FlxTimer
Available on all platforms
A simple manager for tracking and updating game timer objects.
Normally accessed via the static FlxTimer.manager rather than being created separately.
Constructor
Methods
completeAll():Void
Immediately updates all active, non-infinite timers to their end points, repeatedly,
until all their loops are finished, resulting in loopsLeft callbacks being run.
Available since
4.2.0
.forEach(func:FlxTimer ‑> Void):Void
Applies a function to all timers
Parameters:
func | A function that modifies one timer at a time |
|---|
Available since
4.2.0
.update(elapsed:Float):Void
Called by FlxG.plugins.update() before the game state has been updated. Cycles through timers and calls update() on each one.