skeleton_animation_get_ext

Get the animation set used by the given track.

Syntax:

skeleton_animation_get_ext(track);


Argument Description
track The track number to get the animation set name of.


Returns: String


Description

A single skeletal animation sprite can have various animation sets, and these sets can be assigned different tracks so that you can "mix and match" animation sets. This function will return the name of the animation set currently used by the given track number (as set by the function skeleton_animation_set_ext).

IMPORTANT: Spine integration in GameMaker: Studio is a Pro licence feature and will not work in the Free/Standard versions.


Example:

if skeleton_animation_get_ext(1) != "bodyfight"
   {
   skeleton_animation_set_ext("bodyfight", 1);
   }

The above code will change the animation set being used by track 1 to "bodyfight" if it is not already.


Back: Skeletal Animations
Next: skeleton_animation_set_ext
© Copyright YoYo Games Ltd. 2018 All Rights Reserved