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.

Parameters

NameTypeDescription
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


Properties

NameTypeDescriptionDefault
Numberthis.addSequence('default',"0,5")
colsNumbercols
currentFrameNumber0
currentSequenceString"default"
hotXNumberhotX
hotYNumberhotY
imageNumbernew Image()
image.parentNumberthis
image.srcNumberacGameDir+'/'+FileName
nextTickNumber0
rowsNumberrows
sequencesArrayEmpty Array
soundsArrayEmpty Array


Methods

  • addSequence
  • image.onload

    Events