phaser - v4.0.0-rc.4
    Preparing search index...

    Type Alias TimerEventConfig

    type TimerEventConfig = {
        args?: any[];
        callback?: Function;
        callbackScope?: any;
        delay?: number;
        loop?: boolean;
        paused?: boolean;
        repeat?: number;
        startAt?: number;
        timeScale?: number;
    }
    Index

    Properties

    args?: any[]

    Additional arguments to be passed to the callback.

    callback?: Function

    The callback which will be called when the Timer Event fires.

    callbackScope?: any

    The scope (this object) with which to invoke the callback. The default is the Timer Event.

    delay?: number

    The delay after which the Timer Event should fire, in milliseconds.

    loop?: boolean

    true if the Timer Event should repeat indefinitely.

    paused?: boolean

    true if the Timer Event should be paused.

    repeat?: number

    The total number of times the Timer Event will repeat before finishing.

    startAt?: number

    The initial elapsed time in milliseconds. Useful if you want a long duration with repeat, but for the first loop to fire quickly.

    timeScale?: number

    The scale of the elapsed time.