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;