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.
| Button | A | B | C | D | E | F | G | H |
|---|---|---|---|---|---|---|---|---|
| Default name | LP | MP | HP | LK | MK | HK | Tag | Assist |
| Role | Light punch | Medium punch | Heavy punch | Light kick | Medium kick | Heavy kick | Tag (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:
| Property | Description |
|---|---|
DisplayName | Name in the move list. |
Input | The command input: notation and timing (below). |
Action | Action started when the input matches. |
Situation | Grounded, Airborne or Any. |
FromActionSlots | Action 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. |
PriorityBonus | Added to the automatic priority (longer motions first). |
bHiddenInMoveList | Hidden 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 jumpingA). - Two button commands and motions still win over it:
ADthrows and236Cthrows 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
| Notation | Meaning |
|---|---|
5A | Standing A (light punch) |
2E | Crouching E (medium kick, any down direction) |
6C | Forward + C (command normal) |
A | A in any direction (used for jumping normals with the Airborne situation) |
236A | Quarter circle forward + A (fireball motion) |
623B | Dragon punch + B (the 323 shortcut is accepted when lenient) |
214214D | Double quarter circle back + D |
[4]6C | Charge back, then forward + C |
[2]8A | Charge down, then up + A |
22B | Down, down + B |
66 | Forward dash (no button); holding forward after it runs, see Dash and run |
AD | A and D together (LP + LK: the throw) |
~A | Release A (negative edge) |
Timing settings of FAFTCommandInput:
| Property | Default | Description |
|---|---|---|
Notation | 5A | The command. |
MotionWindow | 0 | Max frames between the first motion step and the button. 0 = automatic (6 + 4 per step). |
ButtonBuffer | 4 | Frames a button press stays buffered (1 to 15). |
ChargeFrames | 30 | Frames a direction must be held for charge motions. |
bLenient | on | Accept 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) orOnWhiff; - Categories: which kinds of actions may cancel it:
Normal,CommandNormal,Special,Super,Jump,Dash,Movement,Throw. The default window allowsSpecialandSuper; - 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.
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
| Notation | Action | Situation | From |
|---|---|---|---|
5A to 5F | Normal_5A to Normal_5F: light / medium / heavy punch, light / medium / heavy kick | Grounded | |
2A to 2F | Normal_2A to Normal_2F: crouching punches (2C is an anti-air uppercut) and kicks (2F is the sweep) | Grounded | |
A to F | Normal_jA to Normal_jF: jumping punches and kicks | Airborne | |
A to F | DashAttack_A to DashAttack_F | Grounded | Forward dash, run |
A to F | AirDashAttack_A to AirDashAttack_F | Airborne | Air dash forward / backward |
236C | Special_Fireball (spawns Projectile_Fireball) | Grounded | |
AD | Throw_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.