Spine

new game.Spine(json, [atlas], [props])

Parameters:

  • json String

    Name of the Spine JSON file

  • atlas String (optional)

    Name of the Spine Atlas file. If not defined, will use same name as for the JSON file.

  • props Object (optional)

Properties

_slotContainers Array

(No description yet)

_tempClipContainers Array

(No description yet)

skeleton spine.Skeleton

(No description yet)

spineData spine.SkeletonData

(No description yet)

state spine.AnimationState

(No description yet)

stateData spine.AnimationStateData

(No description yet)

Methods

_createGraphics()

(No description yet)

_createMesh()

(No description yet)

_createSprite()

(No description yet)

_slotUpdateTransform()

(No description yet)

_updateGraphics()

(No description yet)

createSkin(name, skins)

Create combined skin from multiple skins.

Parameters:

  • name String

    name of skin

  • skins Array

    list of skin names

play(name, [loop], [queue], [delay], [track])

Play Spine animation.

Parameters:

  • name String

    Name of animation

  • loop Boolean (optional)

    Loop animation

  • queue Boolean (optional)

    Queue animation

  • delay Number (optional)

    Delay of animation (seconds)

  • track Number (optional)

    Animation track index

setSkin(name)

Set skin by name.

Parameters:

  • name String