» Uncategorized Posts

reset_num_hitboxes

Resets the number of hitboxes for the specified attack to the one originally initialized in [attack_name].gml.

ArgumentTypeDescription
attack:realThe attack to reset the hitbox number of

Example, called from attack_update.gml:

// resets the number of dstrong hitboxes to the value in dstrong.gml:
reset_num_hitboxes( AT_DSTRONG );

set_num_hitboxes

Overwrites the number of hitboxes for the specified attack.

ArgumentTypeDescription
attack:realThe attack to set the hitbox number of
value:realThe value to set

Example, called from dstrong.gml:

// sets the number of hitboxes for dstrong attack:
set_num_hitboxes( AT_DSTRONG, 3 );

get_num_hitboxes

Returns the number of hitboxes for the specified attack.

ArgumentTypeDescription
attack:realThe attack to get the hitbox number for

Example, called from post_draw.gml:

// draws the number of hitboxes for your current attack:
draw_debug_text( x, y, get_num_hitboxes( attack ));

reset_hitbox_value

OResets a value from the hitbox grid to the one originally initialized in [attack_name].gml.

ArgumentTypeDescription
attack:realThe attack to reset the value of
hitbox:realThe hitbox to reset the value of
index:realThe index of the attack grid to reset the value of

Example, called from attack_update:

// resets the damage dealt by the first fair hitbox to the value in fair.gml:
reset_hitbox_value( AT_FAIR, 1, HG_DAMAGE );

set_hitbox_value

Overwrites a value from the hitbox grid for the specified attack and index. Default values are always 0.

ArgumentTypeDescription
attack:realThe attack to set the value of
hitbox:realThe hitbox to set the value of
index:realThe index of the attack grid to set the value of
value:realThe value to set

Example, called from fair.gml:

// sets the damage dealt by the first fair hitbox:
set_hitbox_value( AT_FAIR, 1, HG_DAMAGE, 10 );