skeleton_slot_alpha_get


Description

With this function you can get an attachment slot alpha value. You supply the slot name (a string) and the function will retrun an real value for the alpha between 0 and 1.


Syntax:

skeleton_slot_alpha_get(slot);

Argument Description
slot The slot name to check, a string


Returns:

Integer


Example:

slot_list = ds_list_create();
skeleton_find_slot(mouse_x, mouse_y, slot_list);
if !ds_list_empty(slot_list)
{
for (var i = 0; i < ds_list_size(slot_list); ++i;)
    {
    if skeleton_slot_alpha_get(slot_list[| i]) != 1
        {
        skeleton_slot_colour_set(slot_list[| i], c_white, 1);
        }
    }
}

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. It then loops through the slot list and resets the colour for the found slots to white with an alpha of 1 if the alpha is not already 1.