classafFantomMappy::AnimBlock

sys::Obj
  afFantomMappy::AnimBlock

@Js

animFunc

Source

|AnimBlock animFunc := AnimFunc.instance().none

decFrameIndex

Source

Void decFrameIndex(|->Void clipFunc)

delay

Source

Int delay

The delayis the number of times AnimBlock.updateAnimation needs to be called before the currentFrameIndex changes. In effect this controls the speed of the animation.

delayCountdown

Source

Int delayCountdown

Returns the number of times AnimBlock.updateAnimation has to be called before the current frame is changed to the next in sequence.

If delayCountdown == 0 the current frame will change on the next call to AnimBlock.updateAnimation and delayCountdown will reset to delay.

frame

Source

Int frame { private set }

Returns the current frame (image index). If this AnimBlock has no frames then 0 is returned

frameIndex

Source

Int frameIndex

frames

Source

Int[] frames := Int[,]

An array of frames (image indexes) that represent the animation sequence

incFrameIndex

Source

Void incFrameIndex(|->Void clipFunc)

updateAnimation

Source

Void updateAnimation()

Counts down the delay and updates the current frame to the next in the animation sequence.

userData

Source

Int? userData