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

    Function PlayAnimation

    • Play an animation on all Game Objects in the array that have an Animation component.

      You can pass either an animation key, or an animation configuration object for more control over the playback.

      Type Parameters

      Parameters

      • items: G

        An array of Game Objects. The contents of this array are updated by this Action.

      • key: string | Animations.Animation | PlayAnimationConfig

        The string-based key of the animation to play, or an Animation instance, or a PlayAnimationConfig object.

      • OptionalignoreIfPlaying: boolean

        If this animation is already playing then ignore this call. Default false.

      Returns G