The jump stops dead when the head just clips the corner of a block
Players aim a jump through a gap and bump the edge of the ceiling by a few pixels, losing all their height. A small correction slides them past instead. Here is how much to forgive and why the direction matters.
Why this works
When a head only just clips an edge, the player sees a clear path and feels cheated by a stop. Moving the hero by a small amount lets the game follow what the eye saw, but only if the shift is small enough not to look like a jump.
When not to use it
Skip it in a game where the exact body shape is the puzzle, such as squeezing through tight gaps, or where ceilings are meant to be hazards. A nudge there moves the hero somewhere the player did not choose. Use a bigger forgiving shape instead.
In the full entry
- What to build, step by step
- Starting values and the reason for each
- 3 common mistakes and the fix
- 28 lines of example code with 4 checks that pass
- How your AI shows you that it works
Say this to your AI
Use the Spielerando entry "The jump stops dead when the head just clips the corner of a block" (read_entry nudge-around-ceiling-corner-on-jump) in my game. Build it step by step, and show me how you checked that it works.Or skip this and connect the MCP: your AI then finds all of this by itself.Connect the MCP