← THE BLUE STICK

Guides / Game mechanics explained

How Variable Jump Height Works

PLAY NOWSolo, free, in your browser

Variable jump height means the length of a button press decides how high the character goes. A tap gives a short hop. A held press gives the full jump. It has been a standard of platform games since Super Mario Bros. in 1985, where holding the A button carries Mario higher than tapping it.

It looks like a small detail. It is the reason a single button can express a small hop over an enemy, a medium jump onto a step and a full leap across a pit.

What it looks like

Three jump arcs from three press lengths Three arcs start from the same point on the ground. A tap gives a low short arc, a medium press a middle arc, and a held press the highest and longest arc. tap medium press held: full jump same take-off height depends on how long you hold
All three jumps leave the ground at the same speed. The difference is when the game stops helping the character rise.

Two ways games do it

Cut the jump on release. The character leaves the ground at full upward speed. If the button is released while the character is still rising, the game reduces that speed at once, often to a fraction of what it was, and gravity finishes the job. This is simple and responsive.

Hold the speed while the button is down. For a short window after take-off, the game keeps upward speed topped up as long as the button is held. Let go and the top-up stops. Celeste works this way, and its published player code gives the numbers.

Value in CelesteNumberWhat it does
Jump speed105 pixels per second upwardThe same for every jump
Variable jump time0.2 secondsHow long holding the button sustains that speed
Gravity900 pixels per second squaredPulls the character down the rest of the time
Half-gravity threshold40 pixels per secondNear the top of a held jump, gravity is halved

So in Celeste the decision window is a fifth of a second. Release before it ends and the jump is shorter. Hold through it and you get everything.

The last row is a separate trick. While jump is held and the character is moving slowly near the peak, gravity is halved. The character hangs at the top a little longer, which gives the player more time to steer onto a landing spot. The game's director has described it as one of its forgiveness mechanics.

Why it feels right

Some games choose a fixed jump on purpose. The original Castlevania and Ghosts 'n Goblins commit you to an arc the moment you leave the ground, and much of their difficulty comes from that. Neither approach is correct. They produce different games.

Drills for jump control

Use any platformer with variable height and a flat stretch of ground.

  1. Three heights. Jump ten times with the shortest tap you can make, ten times with a held press, then ten times aiming for exactly halfway. The middle one is the hard one. Use a ledge or background detail as a height mark.
  2. Low ceiling. Find a gap with something overhead. Clear it ten times in a row without touching the ceiling.
  3. Stairs. On a staircase of uneven steps, use the smallest jump that clears each step. Count wasted height as a mistake.
  4. Release late on purpose. Do a full jump and notice the point where releasing no longer changes anything. After that point your thumb is free, so you can release early and prepare the next press.

The fourth drill matters most in fast games. Players who hold jump until landing are always late for the next jump, because the button has to come up before it can go down again.

PLAY NOWSolo, free, in your browser