Kiwi.Animations.Sequence Class
A Sequence is a series of cells that are held on a SpriteSheet/TextureAtlas. Sequences are generally used with the AnimationManager/Animation sections as a way to initially create Animations on GameObjects that use the same TextureAtlas.
Constructor
Kiwi.Animations.Sequence
-
name
-
cells
-
[speed=0.1]
-
[loop=true]
Parameters:
-
name
StringThe name of this sequence. This is not unique.
-
cells
NumberThe cells that are in this animation.
-
[speed=0.1]
Number optionalThe time an animation should spend on each frame.
-
[loop=true]
Boolean optionalIf the sequence should play again if it was animating and the animation reaches the last frame.
Returns:
Properties
cells
Number
public
The cells that are in this animation. These are a reference to the cells that are contained in a texture atlas that this sequence should be a part of.
loop
Boolean
public
If the sequence should play again if it was animating and the animation reaches the last frame.
name
String
public
The name of this sequence.
speed
Boolean
public
The time an animation should spend on each cell.