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_height
Number the maximum height of the spritesheet -
sets the current to next frame
Name Type Description max_width
Number the maximum width of the spritesheet -
set animation index
Name Type Description i
Number animation index to set max_height
Number the maximum height of the spritesheet -
set frame index
Name Type Description i
Number frame index to set max_width
Number the maximum width of the spritesheet