set_character_color_slot

Changes the color slot of the currently selected color profile, affecting only the character and leaving articles alone.

ArgumentTypeDescription
shade:realThe color slot to change
red:realThe Red value to set the color to.
Should be between 0 and 255.
green:realThe Green value to set the color to.
Should be between 0 and 255.
blue:realThe Blue value to set the color to.
Should be between 0 and 255.
alpha:realThe Alpha value to set the color to, with 0 being fully transparent and 1 being opaque.

Example, called from post_draw.gml:

//This code sets the player's first color slot to be a partially-transparent white if they're set to a specific palette.
if get_player_color(player) == 13 {
set_character_color_slot(0, 255, 255, 255, 0.5);
}