Quick start

Hit feedback on your own enemy in about five minutes.

1. Add Hit Feedback #

Select your enemy (in the Hierarchy, or a prefab in the Project window) and open Tools > Responsive FX > Setup Wizard. Pick a Preset (Existing Game (safe) if your game already has combat) and press Add Hit Feedback. Prefabs get a new variant in Assets/RareGeometryData/ResponsiveFX/Prefabs; your original prefab is never changed.

You can also just add the component: Add Component > Responsive FX > Hit Feedback. It works at once with the Action RPG preset.

2. Hit it #

Pick whichever fits your game:

  • One line of code, from your weapon, projectile or combat script:
using RareGeometry.ResponsiveFX;

HitFeedback.Hit(enemy, 25);                                         // a normal hit of 25
HitFeedback.Hit(enemy, new HitInfo(60, HitKind.Critical).At(point)); // a critical hit where it landed
  • Your own health script, no code: the Setup Wizard finds it and adds a Hit Feedback Bridge that watches its health value. See Hook it into your game.
  • Responsive FX's Health component (Setup Wizard: Add Responsive FX's basic Health). Call health.Damage(25) and the feedback plays by itself, including the kill moment when health reaches zero.
  • A UnityEvent or an animation event: call HitFeedback.HitAmount (float), CriticalHit, HealAmount, KillingHit, Miss or Block.

3. Press Play #

Hit it. You see the number, the flash, the freeze, the shake and the push. Use the buttons in the Hit Feedback inspector (Hit, Critical, Heal, Kill) to try it without any code.

4. Make it feel like your game #

  • Change the Preset for a different feel, or press Save As Profile to change every value.
  • Drag the Juice slider for more or less of everything.
  • Add Player Hit Feedback to your player for a damage vignette, direction arrows and rumble.

Nothing happens? Open Tools > Responsive FX > Why No Feedback?. It lists every part of each hit, what played and why anything was skipped, with a fix.

Something unclear or wrong? Tell us · Get help