set_attack

Changes the character’s state to the specified attack.

ArgumentTypeDescription
state:realThe attack to set

Example, called from attack_update.gml:

// allows the player to cancel the endlag of a successful parry into Nspecial (but not other specials):
if (state == PS_PARRY && window == 2 && perfect_dodged && special_pressed) {
if !(up_down || down_down || left_down || right_down) {
set_attack( AT_NSPECIAL );
}
}