| Name | Type | Description |
|---|---|---|
game |
Core.Game | the game object |
sprite |
Graphics.Sprite | the sprite object to apply animation to |
frameWidth |
Number | the sprite tile frame width |
frameHeight |
Number | the sprite tile frame height |
speed |
Number | the animation speed (fps) |
Members
-
current frame
Methods
-
sets current to next animation
-
sets current to next frame
-
rendering the animaion
-
sets the animation index (usually spritesheet row)
Name Type Description iNumber animation index -
sets the animation frame index.
Name Type Description iNumber animation frame index -
updates the current frame