jetlag2d
    Preparing search index...

    Class AnimationSequence

    AnimationSequence describes a set of images that can be cycled through, in order to achieve an animation effect. We associate a time (in milliseconds) with each image, and also allow the animation to loop.

    Index
    loop: boolean

    Should the animation repeat?

    steps: { cell: Sprite; duration: number }[] = []

    A set of images that can be used as frames of an animation, along with their durations

    Type Declaration

    • cell: Sprite

      The image to show during this step

    • duration: number

      How long to show it, in milliseconds

    • Create a "simple" animation (i.e., one that shows each of a set of images for the same amount of time)

      Parameters

      • cfg: { images: (string | PixiSprite)[]; repeat: boolean; timePerFrame: number }
        • images: (string | PixiSprite)[]

          The names of the images that comprise the animation

        • repeat: boolean

          True if the animation should repeat when it reaches the end

        • timePerFrame: number

          The time to show each image, in milliseconds

      Returns AnimationSequence

      The animation