The functions found in this section are only for use with sprites that have been imported from a skeletal animation file (like the JSON files that Spine exports) and can be used to get information about an animation asset in your game, as well as for setting certain properties within an animation. These functions can to be used along with the regular sprite functions and variables, permitting you to (for example) mix two skeleton animations using these special functions while setting the image scale using the normal sprite instance variables. For more information on the sprite instance variables see the section on Instance Properties.
NOTE: For further information on importing skeletal animation sprites made with Spine, please see the section Importing Skeletal Animations.
IMPORTANT: Spine integration in GameMaker: Studio is a Pro licence feature and will not work in the Free/Standard versions.
The functions available are:
- skeleton_animation_get
- skeleton_animation_set
- skeleton_animation_get_ext
- skeleton_animation_set_ext
- skeleton_animation_get_duration
- skeleton_animation_mix
- skeleton_animation_list
- skeleton_animation_clear
- skeleton_animation_get_frames
- skeleton_animation_get_frame
- skeleton_animation_set_frame
- skeleton_get_minmax
- skeleton_get_num_bounds
- skeleton_get_bounds
- skeleton_skin_get
- skeleton_skin_set
- skeleton_skin_list
- skeleton_attachment_get
- skeleton_attachment_set
- skeleton_attachment_create
- skeleton_bone_data_get
- skeleton_bone_data_set
- skeleton_bone_state_get
- skeleton_bone_state_set
- skeleton_slot_data
- skeleton_collision_draw_set
You can also use various draw routines designed specifically for these types of sprite (apart from the regular draw_sprite() functions). These functions give you more control over what is being drawn and permit you to change animation specific features, such as timing and skins: