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
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 Celeste | Number | What it does |
|---|---|---|
| Jump speed | 105 pixels per second upward | The same for every jump |
| Variable jump time | 0.2 seconds | How long holding the button sustains that speed |
| Gravity | 900 pixels per second squared | Pulls the character down the rest of the time |
| Half-gravity threshold | 40 pixels per second | Near 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
- One button, many jumps. Without it, a game needs either a second button or levels built for one fixed jump.
- It matches intent. A harder, longer press already feels like "more". The game is reading something the hand does naturally.
- It rewards control. Under a low ceiling, a full jump hits your head and costs time. A short hop clears the enemy and keeps you moving.
- It makes levels denser. Designers can place a low spike ceiling over a gap, which is only passable with a short hop, and a tall wall straight after it.
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.
- 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.
- Low ceiling. Find a gap with something overhead. Clear it ten times in a row without touching the ceiling.
- Stairs. On a staircase of uneven steps, use the smallest jump that clears each step. Count wasted height as a mistake.
- 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.