Game Feel / Hit feel
Hit feel — tune the impact
The demo lets you tune hit stop, screen shake, flash and damage numbers, knockback, directional sparks, and three-band audio. Squash is a Godot 4 and Unity code reference that needs project wiring.
Web impact controls
1 · Hit stop
Freeze the whole simulation for a few frames at the moment of impact. The pause is the weight: everything stops, then releases together.
Published anchors: action games freeze “a few frames” (Song 2005); Guilty Gear Xrd ≈7 light / ≈10 heavy (Lin et al. 2022); Smash Ultimate ≈15 frames at 15% damage, 30-frame cap (SmashWiki). The 3–4 / 10+ starting points below are tunable defaults.
Pitfall Past ~10 frames it starts reading as a stutter rather than weight — the player thinks the game dropped frames.
2 · Screen shake
Add trauma on impact and shake the camera by trauma², biased along the attack direction, with a fast, smooth decay.
Directional, short and fast with quick decay — practice from Nijman (2013) and Song (2005); Lin et al. (2022) count camera control among the three make-or-break factors. Amplitudes have no published standard: tunable defaults.
Pitfall Fresh random jitter every frame reads as a glitch. During hit stop, decay trauma with unscaled time — or the shake freezes with the world.
3 · Hit feedback
Bigger hits get bigger numbers, and gold marks heavy hits. Numbers pop and settle as they fly in the hit direction. Nearby numbers spread out, and quick hits of the same kind on one target add up.
A 1–2 frame flash follows the Jonasson & Purho demo (2012). The six number habits are common action-game practice; a short tutorial by 还没醒er covers the same points. Counts are tunable defaults.
Pitfall The overdone preset floods the hit with overlapping numbers and stray labels.
4 · Knockback
Launch the victim along the hit direction with constant deceleration and a hard stop — the stop is where the mass reads.
Direction follows the attack line (Song 2005; Nijman 2013). No published distance/duration table — the slider values are tunable defaults; compare with the presets.
Pitfall A uniform slide feels weightless. Fast out, sudden stop — never a constant-velocity glide.
5 · Directional VFX
Sparks and a shockwave that travel with the force, into and through the target — the burst inherits the attack direction.
Particles and hit light appear in the Juice It or Lose It demo and Song (2005); counts have no standard — start restrained with the tunable defaults, pile on only in the overdone preset, per Kao (2020).
Pitfall An isotropic burst at the impact point reads as confetti. Aim the cone along the hit direction.
6 · Three-band audio
Synthesized live in the page: the low band carries weight, the mid band texture, the high band crispness. Each band has its own switch.
The layer structure (whoosh / effort / impact / reaction) is from Song (2005); “low = weight, mid = texture, high = crisp” is a common frequency split, not a published model. Lin et al. (2022) list sound consistency as a make-or-break factor.
Pitfall Stacking all three bands on every single hit washes the sound out — mix per attack weight instead.
Engine code
These snippets rebuild from what the demo is playing — the Exporting line says whose numbers they carry. Copy them straight into your project. The two smaller files cover the attacker's arm IK and the victim's local bone reactions.
Exporting: my tune
Hookup & limits
- Targets Godot 4.x GDScript and Unity C# (Unity 6+; on older Unity versions rename
linearVelocityback tovelocity). - Hookup: attach the script to a node in your combat scene and call
impact(direction, hit_point, damage, bone)from your own hit detection. Each snippet's header lists the nodes it expects (%Victim, %Sparks, %Camera3D, the impact audio players). - Every number is a tunable default exported from the lab — retune it for your project; it is a starting point, not a rule.
- This demo's knights play authored Mixamo clips (idle / slash / body-hit); the demo itself runs no live IK and no ragdoll.
arm_ik.gd/TwoBoneIK.csandlocal_bones.gdare optional next steps for a real project.
Code snippets are CC0. The knight GLB is provided for in-page playback.
Sources & method
Slider numbers are tunable defaults — starting points to retune for your project, not universal rules. Published sources are cited separately below; unlabeled numbers come from action-game practice (the industry's oral tradition), not research. Retune for your game.
- Song (2005) — frame freezing, directional camera shift, hit light, layered audio. Article ↗
- Sakurai, Famitsu vol. 490–491 — hitstop scales with damage; both sides freeze equally. Translation ↗
- SmashWiki, “Hitlag” — per-game formulas: Ultimate ≈15 frames at 15% damage, 30-frame cap. Wiki ↗
- Lin et al. (2022) — Guilty Gear Xrd ≈7 light / ≈10 heavy frames; hit stop, sound consistency and camera control are the critical three. arXiv ↗
- Jonasson & Purho, “Juice It or Lose It” (2012) — flash, squash, particles, the toggle-and-compare method. Demo ↗
- Nijman, “The Art of Screenshake” (2013) — directional, fast-decaying shake; knockback as a layer.
- Kao (2020) — moderate juiciness beats none and extreme: the overdone preset is the controlled failure case. DOI ↗