skeleton_animation_get_ext(track);
Argument | Description |
---|---|
track | The track number to get the animation set name of. |
Returns: String
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.
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.