Get the animation set being used currently.



Returns: String


With this function you can get the current animation set being used by your skeletal animation sprite. The return value is a string, which will be the name of the set as you defined it in your skeletal animation program.

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


if keyboard_check_pressed(vk_space)
   if skeleton_animation_get() != "jump"

The above code will change the animation set being used to the "jump" set when the space key is pressed, but only if the current set being used is not already "jump".

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