Creates a DuckEngine Animation
The Animation Class. An animation of frames that are used for Sprites
2.0.0
Creates an Animation instance
Animation configuration
Game instance
Scene instance
Sprite that the Animation is attached to
Animation
An internal Timer that is used for counting and playing an AnimationFrame normally
An internal Timer that is used for counting and playing an AnimationFrame reversely
Configuration for the Animation, changing this has no effect, instead change the values of the Animation.
What the internal timers count by, defaults to the game delta time so that it can be used in the Scene.update loop
The current frame being played
The current index of the Animation#frames or Animation#reversedFrames
An internal Timer that is used for counting and delaying before playing the Animation, undefined if Config.delay is not a number
An array of AnimationFrames generated from Duck.Types.Animation.FrameBase array in config
A name/key for the Animation, used by AnimationManager to play the animation
The amount of times the animation repeats, modified from config so that it would work with the internal Timers
The current amount of times an animation played/repeated
The same as Animation#AnimationFrames but reversed
Sprite that the animation is attached to
Pauses the Animation using the internal normal timer
Pauses the Animation using the internal reverse timer
Plays the Animation using the internal normal timer
Plays the Animation using the internal reverse timer
Restarts the Animation using the internal normal timer
Restarts the Animation using the internal reverse timer
REsumes the Animation using the internal normal timer
Resumes the Animation using the internal reverse timer
Sets the repeat amount of the internal normal timer
Repeat amount
Sets the repeat amount of the internal reverse timer
Stops/Cancels the Animation using the internal normal timer
Stops/Cancels the Animation using the internal reverse timer
Generated using TypeDoc
Creates a DuckEngine Animation
The Animation Class. An animation of frames that are used for Sprites
2.0.0