2D Hit Effects: How to Make Impacts Read

Why 2D hits feel weightless and how to fix it: hit flash, hitstop, impact sparks, knockback and shake, fired on one frame and scaled to each hit.

Ruby, a crew member in a red suit, knocks back a small salvage drone in a ship corridor with a bright burst of sparks at the point of contact. Art made in Makko.

Your attack animation plays, the enemy's health bar drops, and the hit still feels like nothing happened. Players miss that they connected, or they notice and feel no weight behind it. Better art rarely fixes this, because the problem lives in timing and feedback.

An impact reads when several small signals fire on the same frame: the target flashes, the game freezes for a few frames (hitstop), a short spark or burst appears at the point of contact, the target gets pushed back, and a sound lands with it. Screen shake can sit on top for heavy hits. Each layer is cheap. Together they tell the player "that connected, and it mattered."

This guide breaks each layer down, gives starting values to tune from, and covers the setup mistakes that make good effects look flat in-engine.

What makes a hit read?

Three things decide whether a player registers a hit: where, when, and contrast.

  • Where: the effect appears at the contact point, not at the target's origin or the center of its sprite. If a sword clips the top of a slime, the spark belongs at the top of the slime.
  • When: every layer starts on the same frame the hit is confirmed. A spark that appears two frames after the flash reads as a separate event.
  • Contrast: the effect has to break from everything around it for a moment. A white flash on a pale character, or an orange spark on a lava background, disappears.

If your hits feel flat, check those three before you redraw anything.

The layers of a hit effect

Most action games build impacts from the same handful of layers. You do not need all of them on every hit; you need the right ones for each hit's weight.

Layer What it tells the player Typical length Cost to build
Hit flash "This target took damage" 1 to 4 frames A small shader or material
Hitstop "That had weight" A few frames, longer for heavy hits A few lines of code
Impact spark or burst "It landed here" 4 to 8 frames of animation One short sprite animation
Knockback "It pushed them" A short slide or hop Movement code
Target shake "They felt it" Overlaps the hitstop A position offset
Screen shake "That was big" A fraction of a second Camera offset
Sound Confirms all of the above Short An audio file

The lengths are starting points to tune by feel, not fixed rules. Fast games use shorter values, slower and heavier games use longer ones.

Hit flash: whitening the target

A hit flash turns the damaged sprite white (or a strong tint) for a frame or a few frames. It is the clearest single signal that damage happened, and players across many genres read it instantly.

The common trap is trying to do it with a color multiply. In Godot, modulate multiplies the sprite's colors, so pushing it above 1 brightens the sprite but leaves dark pixels dark: black multiplied by anything stays black. For a true white silhouette you need a small shader that blends the output color toward white. In a Godot canvas item shader, COLOR in the fragment function holds the texture color multiplied by the vertex color and is also the output, so mixing its RGB toward white by a uniform you animate from 1 to 0 gives you a clean flash while keeping the alpha, and the sprite's shape, intact.

In Unity, the same idea applies with a custom sprite material whose shader lerps toward a flash color. Whatever the engine, drive the flash with a single 0 to 1 value so you can tween it.

Tips:

  • Keep it short. One to four frames at 60 fps is a common range. Longer flashes start to look like a status effect.
  • If your characters are already pale, flash to a saturated color (red, yellow) instead of white.
  • Flash the target, not the attacker. Flashing both muddies who got hit.

Hitstop: freezing a few frames

Hitstop (also called hit pause or freeze frames) briefly stops motion at the moment of impact. Fighting and action games use it heavily, and it is the layer most responsible for the feeling of weight. Masahiro Sakurai devoted an episode of his game design channel to it, "Eight Hit Stop Techniques", covering ideas such as controlling hitstop length per attack, shaking the character who got hit more strongly than the attacker, and keeping the hitbox still while the sprite shakes.

There are two common ways to build it:

  1. Global time scale. Drop the game's time scale to zero (or near zero) for a few frames, then restore it. In Unity, Time.timeScale sets the rate at which game time passes relative to real time, and at zero the game behaves as if paused for anything that uses scaled time. Your restore timer must run on unscaled time or it will never fire. Godot has an equivalent global setting, Engine.time_scale.
  2. Local freeze. Pause only the attacker's and target's animations and movement, and leave the rest of the world running. This works better in games with many enemies on screen, where freezing everything for every hit feels stuttery.

Starting points: a few frames for light hits, noticeably longer for heavy hits and finishers. Scale it with damage rather than using one fixed value, so a big hit feels different from a jab. If particles should keep moving during a global freeze, Unity's particle main module has a useUnscaledTime option that simulates with unscaled delta time.

Impact sparks and bursts

The spark is the visible "it landed here" marker. In most 2D games it is a short, one-shot sprite animation: a bright star or burst shape on frame one, then a few frames of it breaking apart and fading.

What makes sparks read:

  • A strong first frame. The biggest, brightest shape comes first. Players catch the opening frame; the dissipation is decoration.
  • Additive blending. Adding the effect's color to what is behind it makes sparks glow instead of sitting on top like a sticker. Godot's canvas item shaders offer blend_add, and the Godot 2D particles documentation recommends switching flipbook particle materials from Mix to Add for correct display. Phaser's ADD blend mode adds color values where shapes overlap.
  • Direction. Rotate or flip the spark to match the attack direction. A slash from the left should throw its energy to the right.
  • A short life. Four to eight frames of animation is plenty for most sparks. If you are unsure how many frames to draw, the same thinking from how many frames an animation needs applies: spend frames where the shape changes most.

Add a handful of particles (debris, dust, sparks flying off) on top of the sprite burst for variety. The sprite gives the effect its shape; the particles keep repeated hits from looking stamped.

Knockback, target shake and screen shake

Motion sells force. Three kinds work together:

  • Knockback moves the target away from the attacker. Even a few pixels of slide on a light hit helps. Heavy hits can add a small hop.
  • Target shake jitters the hit character's sprite during hitstop. Sakurai's advice is to shake the target more than the attacker and to leave the hitbox where it is, so the shake stays visual. In his examples, characters on the ground shake horizontally and airborne characters vertically.
  • Screen shake moves the camera. Jan Willem Nijman's talk "The Art of Screenshake" shows how much feel it adds, and also how fast it becomes noise. Reserve it for heavy hits, kills, and explosions, decay it quickly, and cap the maximum offset.

Offer a setting to reduce or turn off screen shake. Some players get motion sick, and a toggle costs you almost nothing.

Placing the effect correctly

A good effect in the wrong place reads as a bug. Most placement problems are setup problems:

  • Spawn at the contact point. Use the overlap between your attack hitbox and the target's hurtbox to find it. If you have not separated those two shapes yet, hitbox vs hurtbox covers how to set them up, and how big a 2D hitbox should be covers sizing.
  • Set the effect's pivot to its visual center. A spark whose pivot sits in the top-left corner of its cell will spawn offset from the contact point. The same rules in sprite pivot points apply to effects.
  • Draw it above the target. If your game uses y-sorting, an impact effect that sorts by its own position can slip behind the character it hit. Put hit effects on a layer above characters, or give them a fixed sort offset. Y-sorting in 2D explains why this happens.
  • Match pixel scale. In a pixel-art game, an effect drawn at a different pixel density than the characters looks pasted on. Keep effects at the same scale and filter settings as the rest of your art.

Scaling effects to the strength of the hit

Players learn your effect language fast. If every hit gets the same treatment, nothing feels special. Build a small ladder:

Hit type Flash Hitstop Spark Knockback Screen shake
Light hit Short Brief Small spark Small slide None
Heavy hit Short Longer Larger burst Slide plus hop Light
Critical Short, maybe tinted Longer still Burst plus a distinct shape Strong Medium
Kill or finisher Short Longest Largest burst Launch Medium to strong
Blocked hit None on target Brief Different color or shape Minimal None

The blocked row matters. A block should look clearly different from a hit, usually with a different spark color or shape and no flash on the defender, so players know their defense worked.

Why hits still feel flat: a quick diagnosis

If you have added effects and impacts still feel weak, run through this list:

  1. Layers are not on the same frame. Check that flash, spark, and sound all trigger from the same hit event.
  2. The spark spawns at the target's origin. Usually the feet. Move it to the contact point.
  3. Blend mode is Mix. Switch bright effects to additive.
  4. Effects run too long. Long effects blur together during combos. Cut frames from the tail.
  5. No hitstop at all. It is often the missing layer when everything else looks right.
  6. Every hit is identical. Add the strength ladder above.
  7. Low contrast with the background. Test hits over your brightest and busiest backgrounds, not only your test room.

Doing this in Makko

In Art Studio, you can generate impact sparks and bursts as animations inside the same Collection as your characters, so the effects share your game's look and feel instead of coming from a mismatched pack. The sprite editor's frame resampling lets you trim an effect to the frame count you want before you bake it into a sheet.

In Code Studio, the effect lands in your Asset Library, and you can @-mention it to the AI code assistant when you ask it to spawn the spark at the hit point, add a hitstop, or tween a flash on the target. You stay human-in-the-loop where you want to be: you set the values, test the feel, and adjust.

FAQ

What is hitstop in a 2D game?

Hitstop is a brief freeze at the moment an attack connects. The game, or just the attacker and target, stops for a few frames before motion resumes. It makes hits feel heavy, and many action games vary its length by attack strength.

How do you make a sprite flash white when hit?

Use a small shader that blends the sprite's output color toward white while keeping its alpha, then animate the blend amount from 1 to 0 over a few frames. A color multiply such as Godot's modulate brightens the sprite but cannot turn dark pixels white, because multiplying black leaves it black.

Should hit effects use additive blending?

Bright effects such as sparks, flashes, and energy bursts usually look better with additive blending, because adding their color to the background makes them glow. Dark effects such as smoke or dust should stay on normal (mix) blending, since additive blending can only brighten.

How long should a hit effect last?

Most impact sparks work in a fraction of a second: a strong first frame and a few frames of fade. Long effects pile up during fast combos and hide the action. Treat any number as a starting point and tune it by playing.

Why does my hit effect appear behind the enemy?

The effect is most likely sorting by its own position, for example under y-sorting, and landing behind the character it hit. Put hit effects on a draw layer above characters or give them a fixed sort offset.