skeleton_find_slot


Description

With this function you can find which slots are at a specified room-space position in the Spine sprite associated with the current instance. You create a ds_list and supply its ID along with an x/y position to check and the list will be populated with name string for each of the available attachment slots for the sprite (including any attachment modifications). Note that the list is always sorted in descending order starting from the top-most slot.


Syntax:

skeleton_find_slot(x, y, list);

Argument Description
x The x position in the room to check.
y The y position in the room to check.
list The ID of the DS list to populate with the DS maps.


Returns:

N/A


Example:

slot_list = ds_list_create();
skeleton_find_slot(mouse_x, mouse_y, slot_list);

The above code creates a DS list and then populates it with the slot names found at the position of the mouse in the room.