By George — February 11, 2018
Sets the amount of damage for the specified player.
Argument | Type | Description |
---|
player | :real | ID of the player to set the damage of |
value | :real | The value to set |
Example, called from attack_update.gml:
if (window == 2 && window_timer == 200) {
set_player_damage( player, 0 );
}
Categories: Functions, Programming, Workshop | Comments: 0
By George — February 11, 2018
Returns the amount of damage the specified player has.
Argument | Type | Description |
---|
player | :real | ID of the player to get the damage of |
Example, called from update.gml:
if (get_player_damage( player ) >= 100) {
gravity_speed = 1.0;
} else {
gravity_speed = 0.5;
}
Categories: Functions, Programming, Workshop | Comments: 0
By George — February 11, 2018
Returns the color slot being currently used by the specified player.
Argument | Type | Description |
---|
player | :real | ID of the player to get the color of |
Example, called from post_draw.gml:
if (get_player_color( player ) == 3) {
draw_sprite(sprite_get( "aura_particles" ), aura_timer, x, y );
}
Categories: Functions, Programming, Workshop | Comments: 0
By George — February 11, 2018
Sets the number of stocks for the specified player.
Argument | Type | Description |
---|
player | :real | ID of the player to set the stocks of |
value | :real | The value to set |
Example, called from attack_update.gml:
if (window == 2 && window_timer == 200) {
set_player_stocks( player, get_player_stocks( player ) + 1 );
}
Categories: Functions, Programming, Workshop | Comments: 0
By George — February 11, 2018
Returns the number of stocks the specified player has.
Argument | Type | Description |
---|
player | :real | ID of the player to get the stocks of |
Example, called from got_hit.gml:
if (get_player_stocks( hit_player ) == 1) {
old_hsp *= .5;
old_vsp *= .5;
}
Categories: Functions, Programming, Workshop | Comments: 0