Class CAAT.Foundation.SpriteImageAnimationHelper
Defined in: SpriteImageAnimationHelper.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Define an animation frame sequence, name it and supply with a callback which be called when the
sequence ends playing.
|
Field Attributes | Field Name and Description |
---|---|
A sequence of integer values defining a frame animation.
|
|
Call this callback function when the sequence ends.
|
|
Time between any two animation frames.
|
Method Attributes | Method Name and Description |
---|---|
<private> |
__init(animation, time, onEndPlayCallback)
|
Class Detail
CAAT.Foundation.SpriteImageAnimationHelper()
Define an animation frame sequence, name it and supply with a callback which be called when the
sequence ends playing.
Field Detail
animation
A sequence of integer values defining a frame animation.
For example [1,2,3,4,3,2,3,4,3,2]
Array.
onEndPlayCallback
Call this callback function when the sequence ends.
time
Time between any two animation frames.
Method Detail
<private>
__init(animation, time, onEndPlayCallback)
- Parameters:
- animation
- time
- onEndPlayCallback