Skip to main content

Commands and Cancels

Buttons​

The simulation knows 8 generic buttons, A to H. AFT uses a six button layout: three punches and three kicks, plus the tag and assist buttons of the tag team mode. The in-game names come from Project Settings > AFT Core > Input > Button Names and are used by the move list, the input log and the training HUD.

ButtonABCDEFGH
Default nameLPMPHPLKMKHKTagAssist
RoleLight punchMedium punchHeavy punchLight kickMedium kickHeavy kickTag (tag team rules TagButton)Assist (AssistButton)

The notation always uses the letters: 5A is the standing light punch, 2F the crouching heavy kick (the sweep), AD the throw (LP + LK). The move list shows them with the button names (5A -> 5LP). The default keys of each device are listed in Input and Controls.

The move list​

The Commands array of the fighter is its move list. Each FAFTMoveCommand has:

PropertyDescription
DisplayNameName in the move list.
InputThe command input: notation and timing (below).
ActionAction started when the input matches.
SituationGrounded, Airborne or Any.
FromActionSlotsAction slots (AFT.Action tags) the command starts from, for example AFT.Action.DashForward + AFT.Action.Run. Empty = from any action the situation allows. See Attacks out of a dash.
PriorityBonusAdded to the automatic priority (longer motions first).
bHiddenInMoveListHidden from the in-game move list.

Commands are tested only when the current state allows it: a state of the state graph with Allow Commands, or a cancel window of the current action.

Attacks out of a dash​

A command with FromActionSlots only starts while the fighter plays the action of one of these slots. This gives a move a different version out of a dash or a run with the same button: the wizard creates the dash attacks (A to F from AFT.Action.DashForward and AFT.Action.Run) and the air dash attacks (A to F from AFT.Action.AirDashForward and AFT.Action.AirDashBackward), next to the usual 5A... 5F and the jumping A... F.

  • During the dash, the run or an air dash, the dash version wins over the one button normal of the same button (5A, 2A, the jumping A).
  • Two button commands and motions still win over it: AD throws and 236C throws a fireball out of a dash.
  • A command whose slots are all empty on the fighter never starts.
  • The CPU follows the same rule: it only picks such a command while it plays one of these actions.

Numpad notation​

Inputs are written in numpad notation, relative to the facing (6 = forward, 4 = back, 2 = down, 8 = up, 5 = neutral):

7 8 9
4 5 6
1 2 3
NotationMeaning
5AStanding A (light punch)
2ECrouching E (medium kick, any down direction)
6CForward + C (command normal)
AA in any direction (used for jumping normals with the Airborne situation)
236AQuarter circle forward + A (fireball motion)
623BDragon punch + B (the 323 shortcut is accepted when lenient)
214214DDouble quarter circle back + D
[4]6CCharge back, then forward + C
[2]8ACharge down, then up + A
22BDown, down + B
66Forward dash (no button); holding forward after it runs, see Dash and run
ADA and D together (LP + LK: the throw)
~ARelease A (negative edge)

Timing settings of FAFTCommandInput:

PropertyDefaultDescription
Notation5AThe command.
MotionWindow0Max frames between the first motion step and the button. 0 = automatic (6 + 4 per step).
ButtonBuffer4Frames a button press stays buffered (1 to 15).
ChargeFrames30Frames a direction must be held for charge motions.
bLenientonAccept common shortcuts: the first / last cardinal steps also match the adjacent diagonals.

An invalid notation is reported by the fighter validation. The parser and the matcher are covered by the automation tests AFT.Core.Command.Parse and AFT.Core.Command.Match.

Priority​

When several commands match on the same frame, the most specific one wins: longer motions first, then charge motions, then more buttons, then a held direction (236A beats 2A, which beats A). A command with FromActionSlots gets a bonus above the one button commands, but stays below the two button commands and the motions. PriorityBonus adjusts this order. A button press used by a command is consumed, so it cannot trigger a second command.

Cancels​

An action can be interrupted only inside a Cancel Window frame event. The window defines:

  • Condition: Always, OnHit, OnBlock, OnContact (hit or block) or OnWhiff;
  • Categories: which kinds of actions may cancel it: Normal, CommandNormal, Special, Super, Jump, Dash, Movement, Throw. The default window allows Special and Super;
  • Actions: explicit targets allowed even when their category is not, for gatlings and target combos.

Example: the wizard gives every light normal (5A, 2A, 5D, 2D) a window on contact that targets the medium and heavy normals, punches and kicks alike (5B, 2B, 5E, 2E, 5C, 2C, 5F, 2F), and every medium normal a window to the heavy ones: the gatling chain light -> medium -> heavy. The windows also allow the Special and Super categories. 5C, 2C and 5F can also be jump cancelled. The jumping normals chain the same way in the air.

Kara cancels, jump cancels, dash cancels

Use a window with the Jump or Dash category for jump / dash cancels, and a short Always window at the very start of a move for kara cancels.

Commands from the state graph​

Motions that are not attacks (dashes 66, backdashes 44, super jumps 28...) are usually conditions of the state graph (Input Command condition) rather than move list entries.

Commands generated by the wizard​

NotationActionSituationFrom
5A to 5FNormal_5A to Normal_5F: light / medium / heavy punch, light / medium / heavy kickGrounded
2A to 2FNormal_2A to Normal_2F: crouching punches (2C is an anti-air uppercut) and kicks (2F is the sweep)Grounded
A to FNormal_jA to Normal_jF: jumping punches and kicksAirborne
A to FDashAttack_A to DashAttack_FGroundedForward dash, run
A to FAirDashAttack_A to AirDashAttack_FAirborneAir dash forward / backward
236CSpecial_Fireball (spawns Projectile_Fireball)Grounded
ADThrow_Attempt (then Throw_Success, a held throw)Grounded

The move list names follow the buttons: Light Punch, Crouching Medium Kick, Jumping Heavy Kick, Uppercut, Sweep, Slide, Dive Kick, Throw (LP + LK)... The dash and air dash attacks are described in Create a Fighter from Animations.