SpriteAnimationEventData

lumin. SpriteAnimationEventData

SpriteAnimationEventData - SpriteAnimation events

Extends

Methods

getCurrentFrameIndex() → {number}

Get the index of the frame of the animation at which the event occurred.

Returns:
Type
number

getPrismId() → {number}

Inherited From:

Returns the Prism ID of the target Prism.

Returns:

the Prism ID of the target Prism.

Type
number

getSpriteAnimationEventType() → {lumin.SpriteAnimationEventType}

Identify the cause/trigger for the event.

Returns:
Type
lumin.SpriteAnimationEventType

isInputEventType() → {boolean}

Inherited From:

Returns true if this is an input event (a subclass of InputEventData).

Returns:

true if this is an input event

Type
boolean

toString() → {string}

Inherited From:

Returns a string representation of this event for debug purposes.

Returns:
Type
string