By Giik — February 11, 2020
Overwrites character’s results screen sidebar image. (the one displaying their placement, defaulting to results_small.png.) Can be assigned to a 79x31px custom sprite using
sprite_get( sprite ) Reference→
Argument | Type | Description |
---|
sprite | :real | The custom sprite to use |
Example, called from load.gml:
set_victory_sidebar( sprite_get( "custom" ));
Categories: Functions, Programming, Workshop | Comments: 0
By Giik — February 11, 2020
Overwrites character’s victory portrait. Can be assigned to a 350x350px custom sprite using
sprite_get( sprite ) Reference→
Argument | Type | Description |
---|
sprite | :real | The custom sprite to use |
Example, called from load.gml:
set_victory_portrait( sprite_get( "custom" ));
Categories: Functions, Programming, Workshop | Comments: 0
By Giik — February 6, 2020
Changes the color slot of the currently selected color profile, affecting only articles and leaving the character 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:
if get_player_color(player) == 13 {
set_article_color_slot(0, 255, 255, 255, 0.5);
}
Categories: Functions, Programming, Workshop | Comments: 0
By Giik — February 6, 2020
Sets the intensity of the color slot’s shading, with 1 being normal shading. Setting it to 0 will make it completely flat, reminiscent of the Early Access palettes in the base game. (Note that you aren’t restricted to just 1 or 0.)
Argument | Type | Description |
---|
shade | :real | The color slot to change |
value | :real | The intensity of the shading. |
if get_player_color(player) == 12 {
set_character_color_shading( 0, 0 );
}
Categories: Functions, Programming, Workshop | Comments: 0
By Giik — February 6, 2020
Returns with various values from the character’s main folder that are otherwise inaccessible.
Argument | Type | Description |
---|
player | :real | Player number to get info from |
info | :real | The type of info to get |
Note that any property with STR in the name will return as a string. Everything else returns as a number.
The values you can get using this function can be the following macros:
Macro |
Associated file |
Description |
INFO_HUD |
hud.png |
The normal sprite used in the character’s HUD bar during gameplay. Returns a sprite index. |
INFO_HUDHURT |
hud_hurt.png |
The hitstun sprite used in the character’s HUD bar during gameplay. Returns a sprite index. |
INFO_ICON |
icon.png |
The sprite used in the custom character select menu. Returns a sprite index. |
INFO_PORTRAIT |
portrait.png |
The large sprite used on the results screen when the character wins. Returns a sprite index. |
INFO_OFFSCREEN |
offscreen.png |
The icon that displays when the character itself is offscreen. Returns a sprite index. |
INFO_CHARSELECT |
charselect.png |
The sprite used in the character select screen when the character is selected and loaded. Returns a sprite index. |
INFO_STR_NAME |
name (in config.ini) |
The character’s name. Returns a string. |
INFO_STR_AUTHOR |
author (in config.ini) |
The author of the character. Returns a string. |
INFO_STR_DESCRIPTION |
description (in config.ini) |
The description of the character. Returns a string. |
INFO_PLURAL |
plural (in config.ini) |
Will return true if the character’s name refers to multiple characters. Returns true or false. |
INFO_VER_MAJOR |
major version (in config.ini) |
The whole number (before the decimal) in the character’s version number. Returns a number. |
INFO_VER_MINOR |
major version (in config.ini) |
The fractional number (after the decimal) in the character’s version number. Returns a number. |
Example, called from hit_player.gml:
hit_text = "See ya, " + get_char_info( hit_player_obj.player, INFO_STR_NAME) + "!";
Categories: Functions, Programming, Workshop | Comments: 0