Asymmetric gravity makes a jump fall faster than it rises: 0.38 s up, 0.30 s down. Apex hang halves gravity near the top while you hold jump. One gives the jump weight, the other a moment to aim the landing.
| Parameter | Value |
|---|---|
| Rise of a 3.6-tile jump | 0.38 s |
| Fall | 0.30 s |
| Gravity up / down | 1,994 / 3,200 px/s² |
| Terminal velocity | 900 px/s |
| Apex hang, under 90 px/s | gravity ×0.5, air acceleration ×1.5 |
Asymmetric gravity: fall faster than you rise
Real gravity is the same both ways, so the fall takes as long as the climb, and on screen that symmetric arc reads as floaty. A faster fall hands control back sooner and makes the landing spot easier to predict. It needs a cap: without one, a ten-tile drop gets hard to steer and to read.
Apex hang: a little more air at the top
The top of the jump is where you decide where to land. Apex hang gives you a few extra hundredths of a second and a bit more grip right there: the same full jump reaches the top in 0.42 s instead of 0.38 s. Celeste does it too, halving gravity under 40 px/s while jump is held.
1 · technique on 2 · T pressed: off Pillar to pillar with apex hang: watch the readout over each jump, 0.42 s to the top. Then T switches it off and the same jumps peak at 0.38 s, with less time to correct.
You're in control from the first frame. The steps are below.
- Jump from pillar to pillar with Space held, steering with ← → at the top of each jump.
- Watch the readout above the arc: about 0.42 s to reach the top.
- Press T and do it again. The top comes at 0.38 s and the landing correction gets noticeably harder.
On a phone you get on-screen buttons: ← → to move, JUMP, and T for the technique.
The real game, running in your browser. The first load fetches the engine; after that it is cached.
How to implement jump gravity and apex hang
- Pick times, not gravity. Choose the height and the rise and fall times, and derive both gravities from them.
- Switch gravity by direction, and clamp the fall at the terminal velocity.
- Add the hang. With jump held and vertical speed under the threshold, halve gravity and raise air acceleration by 50%.
- Keep the hang small. Past a point the character stops jumping and starts floating.
The code in Godot 4
## Gravedad de subida: g = 2h / t²
var gravity_up: float:
get:
return 2.0 * jump_height * tile_size / (time_to_apex * time_to_apex)
## Gravedad de caída (mayor que la de subida si time_to_fall < time_to_apex).
var gravity_down: float:
get:
return 2.0 * jump_height * tile_size / (time_to_fall * time_to_fall) else:
# GRAVEDAD ASIMÉTRICA: caer más rápido de lo que se sube. Quita la
# sensación "flotante" de la parábola simétrica y da peso al aterrizaje.
gravity = p.gravity_down if Lab.on(&"asym_gravity") else p.gravity_up
# ÁPICE: gravedad reducida un instante en lo alto del salto (si se mantiene el botón).
if jump_held and _at_apex(on_floor):
gravity *= p.apex_gravity_mult
# Velocidad terminal: siempre acotada (la de la caída rápida es otra, mayor).
var terminal := maxf(p.max_fall_speed, p.fast_fall_speed) if is_fast_falling else p.max_fall_speed
velocity.y = minf(velocity.y + gravity * delta, terminal) The else is the branch for when the character isn't rising.
Quick answers
Why do platformer characters fall faster than they rise?
A symmetric arc reads as floaty on screen. A faster fall gives the jump weight and shortens the wait to land.
How do I compute jump gravity from height and time?
With height h and time to the top t: takeoff speed v₀ = 2h / t, gravity g = 2h / t². The fall time in the same formula gives the fall gravity.
What terminal velocity should a platformer use?
Celeste uses 20 tiles per second, this lab 22.5: fast enough to feel the drop, slow enough to steer.
Discussion
Comments are hosted on GitHub Discussions — sign in with GitHub to reply.