Is attack pressed

Returns whether the Attack button is pressed while also taking the right stick into account if it’s set to Attack.

Syntax
is_attack_pressed( dir );

Returns
boolean

Examples
//attack_update.gml //This code cancels Ftilt into Utilt if the player inputs Utilt after having hit a player. if (attack == AT_FTILT && has_hit_player == true && is_attack_pressed( DIR_UP )) { set_attack(AT_UTILT); }