By George — February 11, 2018
Returns a value (real or undefined) from the hitbox grid for the specified attack and index.
Argument | Type | Description |
---|
attack | :real | The attack to get the value of |
hitbox | :real | The hitbox to get the value of |
index | :real | The index of the hitbox grid to get the value of |
Example, called from attack_update.gml:
if (window == get_hitbox_value( AT_DTILT, 2, HG_WINDOW ) ) {
hsp = 0;
}
Categories: Functions, Programming, Workshop | Comments: 0
By George — February 11, 2018
Resets a window value from the attack grid to the one originally initialized in [attack_name].gml.
Argument | Type | Description |
---|
attack | :real | The attack to reset the value of |
window | :real | The window to reset the value of |
index | :real | The index of the attack grid to reset the value of |
Example, called from attack_update.gml:
reset_window_value( AT_FSPECIAL_AIR, 2, AG_WINDOW_VSPEED );
Categories: Functions, Programming, Workshop | Comments: 0
By George — February 11, 2018
Overwrites a value from the attack grid for the specified attack, window and index. Default values are always 0.
Argument | Type | Description |
---|
attack | :real | The attack to set the value of |
window | :real | The window 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 fstrong.gml:
set_window_value( AT_FSTRONG, 2, AG_WINDOW_ANIM_FRAMES, 4 );
Categories: Functions, Programming, Workshop | Comments: 0
By George — February 11, 2018
Returns a value (real or undefined) from the attack grid for the specified attack, window and index.
Argument | Type | Description |
---|
attack | :real | The attack to get the value of |
window | :real | The window to get the value of |
index | :real | The index of the attack grid to get the value of |
Example, called from attack_update.gml:
vsp = get_window_value( attack, window, AG_WINDOW_VSPEED ) * 2;
Categories: Functions, Programming | Comments: 0
By George — February 11, 2018
Resets a value from the attack grid to the one originally initialized in [attack_name].gml.
Argument | Type | Description |
---|
attack | :real | The attack to reset the value of |
index | :real | The index of the attack grid to reset the value of |
Example, called from attack_update.gml:
reset_attack_value( AT_JAB, AG_NUM_WINDOWS );
Categories: Functions, Programming, Workshop | Comments: 0