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

    Type Alias TimelineEventConfig

    type TimelineEventConfig = {
        at?: number;
        event?: string;
        from?: number;
        in?: number;
        loop?: Function;
        once?: boolean;
        run?: Function;
        set?: object;
        sound?: string | object;
        stop?: boolean;
        target?: any;
        tween?: TweenBuilderConfig | TweenChainBuilderConfig | Tween | TweenChain;
    }
    Index

    Properties

    at?: number

    The time (in ms) at which the Event will fire. The Timeline starts at 0.

    event?: string

    Optional string-based event name to emit when the Event fires. The event is emitted from the Timeline instance.

    from?: number

    Fire this event 'from' milliseconds after the previous event in the Timeline. If set it will override the at and in properties.

    in?: number

    If the Timeline is running, this is the time (in ms) at which the Event will fire based on its current elapsed value. If set it will override the at property.

    loop?: Function

    A function which will be called when the Event loops, this does not get called if the repeat method is not used or on first iteration.

    once?: boolean

    If set, the Event will be removed from the Timeline when it fires.

    run?: Function

    A function which will be called when the Event fires.

    set?: object

    A key-value object of properties to set on the target when the Event fires. Ignored if no target is given.

    sound?: string | object

    A key from the Sound Manager to play, or a config object for a sound to play when the Event fires. If a config object it must provide two properties: key and config. The key is the key of the sound to play, and the config is the config is a Phaser.Types.Sound.SoundConfig object.

    stop?: boolean

    If set, the Timeline will stop and enter a complete state when this Event fires, even if there are other events after it.

    target?: any

    The scope (this object) with which to invoke the run callback, if set.

    A Tween or TweenChain configuration object or instance. If set, the Event will create this Tween when it fires.