» Uncategorized Posts

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 );

get_hitbox_value

Returns a value (real or undefined) from the hitbox grid for the specified attack and index.

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

Example, called from attack_update.gml:

// sets horizontal speed to 0 during the window where Dtilt's second hitbox is created:
if (window == get_hitbox_value( AT_DTILT, 2, HG_WINDOW ) ) {
hsp = 0;
}

reset_window_value

Resets a window value from the attack grid to the one originally initialized in [attack_name].gml.

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

Example, called from attack_update.gml:

// resets the vspeed of the second window to the value in fspecial_air.gml:
reset_window_value( AT_FSPECIAL_AIR, 2, AG_WINDOW_VSPEED );

set_window_value

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

ArgumentTypeDescription
attack:realThe attack to set the value of
window:realThe window 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 fstrong.gml:

// sets the number of animation frames for the second fstrong window:
set_window_value( AT_FSTRONG, 2, AG_WINDOW_ANIM_FRAMES, 4 );

get_window_value

Returns a value (real or undefined) from the attack grid for the specified attack, window and index.

ArgumentTypeDescription
attack:realThe attack to get the value of
window:realThe window to get the value of
index:realThe index of the attack grid to get the value of

Example, called from attack_update.gml:

// doubles current window vspeed:
vsp = get_window_value( attack, window, AG_WINDOW_VSPEED ) * 2;