Skip to content
ClassTypes & Utilities@public

FlxTimer ​

Deterministic timer advanced by the context's TimerManager.

ts
export declare class FlxTimer

Properties ​

PropertyModifiersTypeDescription
finished-boolean-
loops-number-
loopsLeftreadonlynumber-
managerstatic readonlyTimerManager | null-
paused-boolean-
progressreadonlynumber-
time-number-
timeLeftreadonlynumber-

Methods ​

destroy() ​

ts
destroy(): void

Returns: void

start() ​

ts
start(time?: number, loops?: number, callback?: FlxTimerCallback | null): this

Parameters:

ParameterTypeDescription
timenumber-
loopsnumber-
callbackFlxTimerCallback | null-

Returns: this

stop() ​

ts
stop(): void

Returns: void

update() ​

ts
update(): void

Returns: void

Released under the MIT License.