Pixel art games

Game Feel in 2D Platformers: Coyote Time, Input Buffering and Hit-Stop

Coyote time, input buffering and hit-stop are small, invisible systems that make a 2D platformer feel fair and responsive. Coyote time lets a jump register a moment after leaving a ledge, input buffering remembers a press made slightly too early, and hit-stop freezes the action for a few frames on impact so hits feel heavy. Together with a tuned jump arc, they are most of what players mean by "tight controls".

Why platformers need forgiveness

Players do not press buttons with frame-perfect timing, and they judge timing by what they see, not by what the physics engine knows. If a character runs off a ledge and the player presses jump one frame too late, the player believes they pressed it in time. A strict implementation punishes them, and the game feels broken.

Forgiveness systems close the gap between player intent and game state. They are cheap to build, and they belong among the first things tuned on any pixel art game development project, because no amount of art can save controls that feel unfair.

The core techniques at a glance

TechniqueWhat it fixesStarting point to tune from
Coyote timeMissed jumps just after leaving a ledgeA handful of frames at 60 fps
Jump bufferingJumps pressed just before landing being ignoredA handful of frames at 60 fps
Variable jump heightNo control over short hops vs full jumpsCut upward velocity when jump is released
Fall gravity multiplierFloaty descentHigher gravity when falling than rising
Apex hangHard-to-aim jumpsSlightly reduced gravity near the top of the arc
Corner correctionHead bonking on ledge cornersNudge the player sideways by a few pixels
Hit-stopHits that feel weightlessA few frames, longer for heavier hits

These starting points are deliberately loose. The right values depend on your movement speed, jump height and art. Tune them by playing, not by copying numbers from another game.

Coyote time

Named after the cartoon coyote who runs off a cliff and only falls when he looks down, coyote time keeps the "grounded" state alive for a short window after the character leaves a platform without jumping.

  1. Each physics tick, if the character is on the ground, reset a timer such as coyoteTimer = COYOTE_TIME.
  2. If not on the ground, count it down.
  3. When jump is pressed, allow the jump if coyoteTimer > 0, then set the timer to zero so it cannot trigger a second jump.

Make sure coyote time only applies when the character walked off an edge. If they jumped, the window must already be spent, or players get a free double jump.

Input buffering

Input buffering is the mirror of coyote time. When the player presses jump slightly before landing, the game remembers the press and performs the jump the moment the character touches the ground.

  1. When jump is pressed, set jumpBufferTimer = BUFFER_TIME.
  2. Count it down every tick.
  3. Whenever the character is grounded (or within coyote time) and jumpBufferTimer > 0, jump and clear the buffer.

The same idea applies to attacks, dashes and rolls. Buffering an attack pressed during the last frames of a previous attack's recovery makes combos feel fluid. Pair this with cancel windows in your animations, covered in our guide to pixel art animation for games.

The jump arc

A physically realistic jump feels floaty in a game. Most well-regarded platformers use an asymmetric arc.

  • Variable jump height: when the player releases jump while still rising, reduce upward velocity sharply. Tapping gives a short hop, holding gives a full jump.
  • Faster falls: apply more gravity on the way down than on the way up. Descents feel decisive and landings feel intentional.
  • Apex hang: briefly reduce gravity near the peak when the player is still holding jump, giving a moment to aim.
  • Terminal velocity: cap fall speed so long drops stay readable and the camera can keep up.
  • Air control: decide how much horizontal control the player has mid-air. More control is friendlier, less is more committal.

Design the arc from the level backwards. Decide how high and far a full jump should reach in tiles, then derive gravity and initial velocity from those numbers so levels can be built against a known reach.

Corner correction and ledge forgiveness

When a jump clips the corner of a ceiling by a pixel or two, a strict collision system stops the jump dead. Corner correction checks for that case and nudges the character sideways so the jump continues. The same trick works in reverse for ledges: if the character's feet miss the top of a platform by a pixel, pop them up onto it.

These fixes are invisible when done right. Players simply feel that the game respects what they meant to do.

Hit-stop and impact

Hit-stop (also called hit-pause or freeze frames) briefly pauses the attacker and the target, or the whole game, when a hit connects. A few frames of stillness make the impact readable and give it weight.

  • Scale it with impact. Light hits get a very short pause, heavy hits and finishing blows get longer ones.
  • Keep input alive. Buffer inputs during hit-stop so the game never feels like it ate a button press.
  • Layer it with feedback: a white flash on the target, a small knockback, a short camera shake and a sound on the contact frame.
  • Snap shake to the pixel grid. Fractional camera shake blurs pixel art. Shake in whole game pixels.
  • Do not overdo it. Long hit-stop on every hit slows the pace and becomes tiring.

Implementation tips

  • Use a fixed timestep for movement and timers so feel is the same at every frame rate and on every device.
  • Read input every frame and feed it into the fixed update, so a press between ticks is never lost.
  • Expose every value in a debug menu or config file. Tuning by recompiling is slow.
  • Record and compare. Capture short clips of the same jump before and after a change.
  • Test on the target input. A jump tuned on a keyboard may feel different on a gamepad or touch screen. Our post on designing touch controls that feel good covers the extra forgiveness touch needs.

Game feel checklist

  • Coyote time applies after walking off ledges, not after jumping.
  • Jump, attack and dash inputs are buffered.
  • Short and full jumps are both possible and both useful in level design.
  • Falls are faster than rises, with capped fall speed.
  • Corner correction prevents head bonks on near-miss jumps.
  • Hits have hit-stop, flash, sound and knockback that scale with strength.
  • All values are tunable without a rebuild.

Seeing it in a real game

Fighting games and platform fighters lean on these systems heavily, with buffering, hit-stop and frame data shaping every exchange. Our write-up on building Ninja Fighters looks at how those ideas apply to a ten-fighter pixel art brawler.

When to bring in a studio

Game feel is easy to describe and slow to get right, because it depends on movement code, animation and level design all at once. If you want it built and tuned alongside the art, see our pixel art game development services. A typical project takes 3–4 months from kickoff to launch, scoped in a short paid discovery sprint.

FAQ

What is coyote time in games?

Coyote time is a short grace period after a character walks off a ledge during which the player can still jump. It matches what players see and expect, so jumps pressed a moment late still work.

What is the difference between input buffering and coyote time?

Coyote time forgives a jump pressed slightly too late after leaving the ground. Input buffering forgives a jump pressed slightly too early before landing by remembering the press and acting on it when the character touches down.

How long should hit-stop last?

Usually only a few frames, scaled with the strength of the hit. Start short, increase it for heavy attacks and finishing blows, and test in real play, because too much hit-stop slows the game down.

Planning something like this?

See how paxl.co handles pixel art game development, or tell us about your project and we will reply within two working days.

Keep reading