Input Names

Use these names when checking a character's input variables. For example,  will check if the special button was pressed within the last 6 frames while   will check if the joystick is currently held downward.

For directions, another input variable exists,, used for joystick hard presses, like dashing or dropping through platforms. Additionally, the angle of the joystick can be found in player variable, and you can check if it is in the neutral state or not with. Both variables works with keyboard as well.

Basic
// attack_update.gml // pressing the attack button while in the 3rd window will put the character in a different attack window // this will also trigger if you press the button within 6 frames before entering the 3rd window, because of [input]_pressed accounting for input buffer if ( attack == AT_USPECIAL && window == 3 ){ if ( attack_pressed ) { window = 6; window_timer = 0; } }