new AnimatedImage(owner, canvasBitmap, regions, argsopt) → {dynamic}
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
owner |
GameEntity | |||
canvasBitmap |
object | |||
regions |
object | |||
args |
object |
<optional> |
{} |
Properties:
Name | Type | Description |
---|---|---|
index |
integer |
The current index of image - this would not normally be changed manually, but if you wanted to stop on a specific image in the spritesheet this could be set. |
animationDurationMs |
float |
The time in milliseconds for a single cycle through the animation to play. |
animationTween |
string |
The name of the tween to use for choosing the next image |
regions |
object |
------------Never To Be Manually Changed----------------- ' These values should never need to be manually changed. |
- Source:
Extends
- Image
Methods
draw(additionalRotationopt) → {dynamic}
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
additionalRotation |
float |
<optional> |
0 |
- Source:
getCellDrawIndex() → {integer}
- Source:
onResume(pausedTime) → {dynamic}
Parameters:
Name | Type | Description |
---|---|---|
pausedTime |
integer |
- Source: