Changes the color slot of the currently selected color profile, affecting only the character and leaving articles alone.
Argument | Type | Description |
---|---|---|
shade | :real | The color slot to change |
red | :real | The Red value to set the color to. Should be between 0 and 255. |
green | :real | The Green value to set the color to. Should be between 0 and 255. |
blue | :real | The Blue value to set the color to. Should be between 0 and 255. |
alpha | :real | The 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);
}