By George — February 11, 2018
Resets the number of hitboxes for the specified attack to the one originally initialized in [attack_name].gml.
Argument | Type | Description |
---|
attack | :real | The attack to reset the hitbox number of |
Example, called from attack_update.gml:
reset_num_hitboxes( AT_DSTRONG );
Categories: Functions, Programming, Workshop | Comments: 0
By George — February 11, 2018
Overwrites the number of hitboxes for the specified attack.
Argument | Type | Description |
---|
attack | :real | The attack to set the hitbox number of |
value | :real | The value to set |
Example, called from dstrong.gml:
set_num_hitboxes( AT_DSTRONG, 3 );
Categories: Functions, Programming, Workshop | Comments: 0
By George — February 11, 2018
Returns the number of hitboxes for the specified attack.
Argument | Type | Description |
---|
attack | :real | The attack to get the hitbox number for |
Example, called from post_draw.gml:
draw_debug_text( x, y, get_num_hitboxes( attack ));
Categories: Functions, Programming, Workshop | Comments: 0
By George — February 11, 2018
OResets a value from the hitbox grid to the one originally initialized in [attack_name].gml.
Argument | Type | Description |
---|
attack | :real | The attack to reset the value of |
hitbox | :real | The hitbox to reset the value of |
index | :real | The index of the attack grid to reset the value of |
Example, called from attack_update:
reset_hitbox_value( AT_FAIR, 1, HG_DAMAGE );
Categories: Functions, Programming, Workshop | Comments: 0
By George — February 11, 2018
Overwrites a value from the hitbox grid for the specified attack and index. Default values are always 0.
Argument | Type | Description |
---|
attack | :real | The attack to set the value of |
hitbox | :real | The hitbox to set the value of |
index | :real | The index of the attack grid to set the value of |
value | :real | The value to set |
Example, called from fair.gml:
set_hitbox_value( AT_FAIR, 1, HG_DAMAGE, 10 );
Categories: Functions, Programming, Workshop | Comments: 0