Coyote time and input buffering: how to make a character controller feel responsive
Players blame "bad controls" when a jump doesn't happen, even if, technically, they pressed the button a frame too late. Two small tricks fix much of that.
Coyote time
Named after the cartoon coyote who runs off a cliff and hangs in the air. Allow the player to jump for a short window (often around 0.1 seconds, tuned to taste) after walking off a ledge.
- Track the last time the player was grounded.
- On jump input, allow the jump if the time since grounded is within the window.
Input buffering
If the player presses jump just before landing, remember it briefly and execute the jump the moment they touch the ground.
- Record the time of the jump press.
- When the player becomes grounded, check if a jump was pressed within the buffer window.
Other responsiveness tweaks
- Variable jump height: cut upward velocity when the button is released early.
- Faster fall speed than rise speed, so jumps feel snappy instead of floaty.
- Acceleration and deceleration curves: instant top speed feels robotic; too much acceleration feels sluggish.
- Corner correction: nudge the player around a ceiling corner when they barely clip it.
- Air control: decide how much steering mid-air you allow.
The principle
The game should respond to what the player meant, not just the exact frame they pressed. Players rarely notice these systems, but they definitely notice when they're missing.
Which of these do you use in your projects? What's the right coyote time window in your experience, and do any games do these tricks especially well?
Comments · 4
Input buffering is something I'd never heard of before I tried making a platformer. Now I can't unsee games that lack it.
Celeste uses coyote time and it's a big part of why that game feels so fair. Tiny trick, huge difference.
How long should the coyote window be? A handful of frames, or more?
Most games land around 5 to 10 frames, roughly 80 to 150 ms. Start small and tune by feel.