Skip to main content

Hits and Boxes

Boxes​

Every collision in AFT is an axis aligned rectangle in the fighting plane, in centimeters, relative to the fighter origin (feet on the ground): X is forward (mirrored automatically when the fighter faces left), Y is up. A box is defined by its center (X, Y) and its Width / Height (FAFTFixedBox, fixed point internally).

BoxEventRoleColor
HitboxHitboxAttack: hits the opponent hurtboxes. References a hit definition by HitIndex.Red
HurtboxHurtboxVulnerable area. Default: the fighter DefaultBoxes for the current stance.Cyan (white when strike invulnerable)
Push boxPushboxBody collision between fighters and with the walls. Default: the fighter DefaultBoxes.Yellow
Throw boxThrowGrabs a throwable opponent, ignores guard.Magenta

Default boxes of a new fighter (DefaultBoxes, center X / center Y / width / height):

HurtboxPush box
Stand0 / 90 / 60 / 1800 / 80 / 50 / 160
Crouch0 / 55 / 70 / 1100 / 50 / 55 / 100
Air0 / 80 / 60 / 1200 / 80 / 45 / 110

Boxes in the training mode

  1. Hitbox of the attacking Quinn's sweep (red)
  2. Its hurtbox (cyan) and push box (yellow)
  3. The knocked down Quinn: strike invulnerable hurtbox (white) and push box (yellow)

The colors, the fill opacity and the border thickness are shared by the Fighter Editor and the in-game box viewer: Project Settings > AFT Core > Debug > Box Style (Hurtbox, Hitbox, Pushbox, Throwbox, InvulnerableHurtbox, FillOpacity, PushboxFillOpacity, BorderThickness).

Hit definitions​

A hit definition (FAFTHitDefinition, in the Hits array of the action) describes what happens when an attack connects. Hitbox and throw events reference it by index, so several boxes (or several frames) can share one hit.

GroupPropertyDefaultDescription
HitNameHitLabel in the editor.
AttackLevel10 to 5: default hit stun, block stun, hit stop and reaction from the battle rules table.
DamageDamage300Base damage.
ChipDamage0Damage on block.
ProrationPercent90Combo scaling applied to the following hits (percent of the current proration).
MinimumDamagePercent10Damage this hit still deals under heavy scaling (percent of Damage).
GuardGuardTypeMidMid (stand or crouch), Low (crouch only), Overhead (stand only), AirUnblockable, Unblockable.
StunbOverrideStun, HitStun, BlockStun, HitStopoff, 12, 9, 11Replace the attack level values.
PushPushbackHit, PushbackBlock9, 11Horizontal push of the defender (cm per frame, decays). When the defender is cornered, the attacker is pushed instead.
AirLaunchVelocity6, 14Velocity given to an airborne or launched defender (X away from the attacker).
ReactionGroundReaction, AirReactionAutoAuto (from the attack level and the stance), StandLight, StandMedium, StandHeavy, Crouch, Air, Launch, KnockdownSoft, KnockdownHard, WallBounce, GroundBounce, Crumple.
WallReactionAutoWhat the defender does if it reaches a wall: Auto (Bounce with the WallBounce reaction, else None), None (slides down the wall), Bounce (wall bounce), Splat (wall splat). See Walls.
CounterHitExtraHitStun (4), ExtraHitStop (4), DamagePercent (110), Reaction and WallReaction overrides on counter hit.
bHitsOTGoffCan hit a knocked down opponent.
Multi hitHitCount, MultiHitInterval1, 4Connections on the same target during one action, and frames between two connections.
MeterMeterGainOnHit, MeterGainOnBlock30, 15Meter gained by the attacker.
PresentationHitCue, BlockCueCues spawned at the contact point (spark, sound), see Effects and Sounds.
HoldHoldActionOnHitNoneCinematic supers and command grabs: when this hit connects (not blocked, not absorbed by armor, not from a projectile, not a KO), the attacker switches to this action and holds the defender, like a held throw. See Cinematic Supers.

Attack levels​

The battle rules hold one stun table entry per attack level (Guilty Gear like values by default). Edit them in the battle rules asset (AttackLevels).

LevelHit stunCrouch hit stunBlock stunHit stopStand reaction
01011911StandLight
112131112StandLight
214151313StandMedium
317181614StandMedium
419201815StandHeavy
522232016StandHeavy

Combat rules​

The simulation resolves, every frame: hits, guards, throws and clashes (two hitboxes touching), then armor, counter hits, proration and combo decay.

  • Guard: hold back (away from the opponent). Low attacks need a crouching guard, Overhead a standing guard.
  • Counter hit: hitting an opponent while a State Flags event raises CounterHitState adds the counter hit properties. The wizard places this flag on the startup and active frames of the generated attacks; add it wherever your design needs it.
  • Proration: each hit multiplies the damage of the following hits by its ProrationPercent, down to the rules MinimumProrationPercent (20 by default); each hit keeps at least its MinimumDamagePercent.
  • Combo stun decay: the hit stun is reduced by ComboStunDecayPerSecond frames per second of combo (anti infinite).
  • Throws: a throw breaks if both players throw within ThrowTechFrames; throws cannot connect during ThrowProtectionFrames after a hit or block stun. A throw whose success action holds the opponent deals its damage when it releases it, see Held throws.
  • Knockdown: the fighter lies KnockdownFrames frames, then wakes up with WakeUpInvulnerableFrames of invulnerability.

All these values are in the battle rules.