| Name | Type | Description |
|---|---|---|
px |
Number | the frame x position |
py |
Number | the frame y position |
w |
Number | the frame width |
h |
Number | the frame height |
Methods
-
get current animation index
Returns:
Type Description Number current animation index -
get current frame index
Returns:
Type Description Number current frame index -
sets the current to next animation
Name Type Description max_heightNumber the maximum height of the spritesheet -
sets the current to next frame
Name Type Description max_widthNumber the maximum width of the spritesheet -
set animation index
Name Type Description iNumber animation index to set max_heightNumber the maximum height of the spritesheet -
set frame index
Name Type Description iNumber frame index to set max_widthNumber the maximum width of the spritesheet