Game dev
Saved & recent

Input buffering

Related terms: jump buffer, input queue, coyote time, game feel

Remembering an input for a short window so it can run when the action becomes available. Press jump just before landing, and the stored press triggers a jump on landing instead of being lost.

Consume the buffered input once, or discard it when it expires. A long window can trigger actions the player no longer intends. Coyote time solves the other side of the timing problem: accepting a jump shortly after leaving a ledge.

Further reading
Tooster: Input buffering, coyote time
landing jump jump press consumed on landing expires jump press expired before landing -160 -120 -80 -40 0 40 80 time relative to landing (ms)
Both presses get 120 ms of storage. The press at −80 ms survives until landing and triggers a jump. The press at −150 ms expires first.

View in the full Game dev collection