NGONGO-B ELECTRIC STORIES
object aAnim
---
aAnim(FileName,hotX,hotY,cols,rows)
The animation object that is used to give objects their animation functions. It holds an image with animation frames and the definition of the animation sequences it must play.
The animation object that is used to give objects their animation functions. It holds an image with animation frames and the definition of the animation sequences it must play.
Parameters
Name | Type | Description | |
---|---|---|---|
FileName | |||
cols | Number of columns of frames in the image | ||
hotX | x-position in each frame that is used for it's origin | ||
hotY | y-position in each frame that is used for it's origin | ||
rows | Number of rows of frames in the image |
Name | Type | Description | Default |
---|---|---|---|
Number | this.addSequence('default',"0,5") | ||
cols | Number | cols | |
currentFrame | Number | 0 | |
currentSequence | String | "default" | |
hotX | Number | hotX | |
hotY | Number | hotY | |
image | Number | new Image() | |
image.parent | Number | this | |
image.src | Number | acGameDir+'/'+FileName | |
nextTick | Number | 0 | |
rows | Number | rows | |
sequences | Array | Empty Array | |
sounds | Array | Empty Array |