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