API Docs for: 1.13.1
Show:

game.Spine Class

Constructor

game.Spine

(
  • id
  • [properties]
)

Parameters:

  • id String

    Asset ID

  • [properties] Object optional

    Properties to merge to this animation

Item Index

Methods

Methods

addTo

(
  • container
)

Add to container.

Parameters:

mix

(
  • from
  • to
  • value
)

Mix two animations for smooth transition.

Parameters:

  • from String

    Animation name to mix from.

  • to String

    Animation name to mix to.

  • value Number

    Percent of mix.

play

(
  • anim
  • loop
  • after
)

Play animation.

Parameters:

  • anim String

    Name of animation.

  • loop Boolean

    Animation looping.

  • after Boolean

    Start after current animation.

remove

()

Remove from it's parent.