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

    Type Alias TweenPropConfig

    type TweenPropConfig = {
        delay?: number;
        duration?: number;
        ease?: string | Function;
        flipX?: boolean;
        flipY?: boolean;
        getActive?: GetActiveCallback;
        getEnd?: GetEndCallback;
        getStart?: GetStartCallback;
        hold?: number;
        interpolation?: string | Function;
        repeat?: number;
        repeatDelay?: number;
        value?: number | number[] | string | GetEndCallback | TweenPropConfig;
        yoyo?: boolean;
    }
    Index

    Properties

    delay?: number

    Time in milliseconds before tween will start.

    duration?: number

    Duration of the tween in milliseconds.

    ease?: string | Function

    The ease function this tween uses.

    flipX?: boolean

    Should toggleFlipX be called when yoyo or repeat happens?

    flipY?: boolean

    Should toggleFlipY be called when yoyo or repeat happens?

    getActive?: GetActiveCallback

    What the property will be set to immediately when this tween becomes active.

    What the property will be at the END of the Tween.

    getStart?: GetStartCallback

    What the property will be at the START of the Tween.

    hold?: number

    Time in milliseconds the tween will pause before repeating or returning to its starting value if yoyo is set to true.

    interpolation?: string | Function

    The interpolation function to use if the value given is an array of numbers.

    repeat?: number

    Number of times to repeat the tween. The tween will always run once regardless, so a repeat value of '1' will play the tween twice.

    repeatDelay?: number

    Time in milliseconds before the repeat will start.

    value?: number | number[] | string | GetEndCallback | TweenPropConfig

    What the property will be at the END of the Tween.

    yoyo?: boolean

    Determines whether the tween should return back to its start value after hold has expired.