springroll.pixi.SpineInstance Class

Extends springroll.AnimatorInstance
Module: PIXI Spine

The plugin for working with Spine skeletons and animator

destroy

()

Defined in destroy:271

Reset this animator instance so it can be re-used.

endAnim

()

Defined in endAnim:129

Ends animation playback.

getDuration

(
  • clip
  • event
)
Number
static

Defined in getDuration:209

Calculates the duration of an animation or list of animations.

Parameters:

  • clip

    The clip to check.

  • event String

    The animation or animation list.

Returns:

Number:

Animation duration in milliseconds.

hasAnimation

(
  • clip
  • event
)
Boolean
static

Defined in hasAnimation:164

Checks if animation exists

Parameters:

  • clip

    The clip to check for an animation.

  • event String

    The frame label event (e.g. "onClose" to "onClose_stop")

Returns:

Boolean:

does this animation exist?

init

(
  • clip
)

Defined in init:31

The initialization method

Parameters:

  • clip

    The movieclip

setPosition

(
  • newPos
)

Defined in setPosition:138

Updates position to a new value, and does anything that the clip needs, like updating timelines.

Parameters:

  • newPos Number

    The new position in the animation.

test

() Boolean
static

Defined in test:153

Check to see if a clip is compatible with this

Returns:

Boolean:

if the clip is supported by this instance