With this function you can set an attachment slot colour and alpha so all sprites attached to it will be drawn with these blend values. Keep in mind that the instance sprite can have a blend colour and alpha setting (image_blend and image_alpha), as can the attachment (see the function skeleton_attachment_create_colour()), and so the final colour and alpha that the assigned attachment sprite for the slot will have will be a composite of all these values.
skeleton_slot_colour_set(slot, colour, alpha);
|slot||The slot name to set, a string|
|colour||The colour to set, either an integer, a constant, or a hex value.|
|alpha||The alpha to set from 0 to 1.|
slot_list = ds_list_create();
skeleton_find_slot(mouse_x, mouse_y, slot_list);
for (var i = 0; i < ds_list_size(slot_list); ++i;)
if skeleton_slot_colour_get(slot_list[| i]) != c_white
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 colour is not already white.