Argument Description sprite The sprite index of the Spine skeletal animation to get the list from. list The ID of the DS list to populate with the animation names.
With this function you can populate a (pre-created) ds_list with all the names of the animations included as part of the skeletal animation sprite. The names will be strings and can then be used in the other animation functions for these types of sprite.IMPORTANT! This function is not available with the Trial Licence of the product.
var list = ds_list_create();
for (var i = 1; i < ds_list_size(list); i++;)
skeleton_animation_mix(list[| 0], list[| i], 0.5);
The above code creates a ds_list of all the animation names for the sprite being used by the instance. It then loops through these and sets the mix value for all of them with the first animation to 0.5.