By Giik — February 15, 2020
Sets the values of a custom stage’s specific background layer.
You can set the ▼ following indexes:
BG_LAYER_ANIMSPD
BG_LAYER_X
BG_LAYER_Y
BG_LAYER_PARALLAX_X
BG_LAYER_PARALLAX_Y
BG_LAYER_REPEAT
BG_LAYER_AUTOSCROLL_X
BG_LAYER_AUTOSCROLL_Y
Note that this only works on custom stages. Using this on a default stage will do nothing.
Argument | Type | Description |
---|
layer | :real | The layer to change.Layers 1-6 are background, Layer 7 is ground level, and layers 8-9 are the foreground. |
data | :real | The data index to set. Can be one of the indexes listed above. |
value | :real | The value the data will be set to. |
Example, called from a stage’s update.gml:
set_bg_data(1, BG_LAYER_AUTOSCROLL_Y, sin(get_gameplay_time()) * 10 );
Categories: Functions, Programming, Workshop | Comments: 0
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