By Giik — February 2, 2019
Returns the hex value of the specified player’s HUD color.
Argument | Type | Description |
---|
player | :real | The player slot to check. Should be between 1 and 4. |
Example, called from update.gml:
var _col = get_player_hud_color( player );
outline_color = [
color_get_red( _col ),
color_get_green( _col ),
color_get_blue( _col )
];
Categories: Functions, Programming, Workshop | Comments: 0
By Giik — February 2, 2019
Checks whether the player slot is active or not.
Argument | Type | Description |
---|
setting | :real | The player slot to check. Must be between 1 and 4. |
Example, called from a stage’s other_init.gml:
if ( player_is_on( player ) ) {
other.total_player_count += 1;
}
Categories: Functions, Programming, Workshop | Comments: 0
By Giik — February 2, 2019
Returns whether the special button is pressed while also taking the right stick into account if it’s set to Special.
Argument | Type | Description |
---|
dir | :real | The direction to check. |
▼ Indexes Reference
DIR_ANY
DIR_NONE
DIR_UP
DIR_DOWN
DIR_LEFT
DIR_RIGHT
Example, called from attack_update.gml:
if ( attack == AT_USPECIAL && window == 4 && is_special_pressed( DIR_DOWN ) ) {
set_attack( AT_USPECIAL_2 );
}
Categories: Functions, Programming, Workshop | Comments: 0
By Giik — February 2, 2019
Returns the Y position of a specified stage marker. Will return -1 if the marker is not found.
Argument | Type | Description |
---|
index | :real | The index of the stage marker to find. |
Example, called from a stage’s article1_update.gml:
if ( y >= get_marker_y( 6 ) ) {
instance_destroy();
}
Categories: Functions, Programming, Workshop | Comments: 0
By Giik — February 2, 2019
Returns the X position of a specified stage marker. Will return -1 if the marker is not found.
Argument | Type | Description |
---|
index | :real | The index of the marker to find. |
Example, called from a stage’s article1_update.gml:
if ( x <= get_marker_x( 6 ) ) {
instance_destroy();
}
Categories: Functions, Programming, Workshop | Comments: 0