By George — February 11, 2018
Returns the angle that the hitbox sends. The function takes the current object’s position into account for angle flippers.
Argument | Type | Description |
---|
hitbox_id | :real | The ID of the hitbox to get the angle of |
Example, called from article1_update.gml:
var temp_angle = get_hitbox_angle( enemy_hitboxID );
var force = enemy_hitboxID.kb_value + enemy_hitboxID.kb_scale * 12;
hsp = lengthdir_x( force, temp_angle );
vsp = lengthdir_y( force, temp_angle );
Categories: Functions, Programming, Workshop | Comments: 0
By George — February 11, 2018
Destroys all physical hitboxes for the character.
Example, called from attack_update.gml:
if (window == 2 && !free){
window = 3;
window_timer = 0;
destroy_hitboxes();
}
Categories: Functions, Programming, Workshop | Comments: 0
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