7 platformer tricks for slopes, one-way platforms, walls and crumbling blocks
The jump gets all the attention, but most platformer jank comes from what you stand on. Seven small tricks for crumbling blocks, falling blocks, one-way platforms, slopes, tight gaps, wall slides and climbing over ledges, with Celeste's numbers, tested Godot code and a prompt for each.
Paste it into Claude Code, Codex, Grok Build or any coding agent.
Copied. Want one of these every week?
The week's game techniques in one free email on Sunday, each with a prompt like this one.
# Add seven ground tricks to my platformer
My 2D platformer's jump is fine, but what the player stands on feels janky. Add these small tricks, most of them from Celeste's player code: crumbling blocks that shake before they drop, a full jump off falling blocks, a jump-through assist for one-way platforms, slope snap, ducking into tight gaps instead of being squished, a wall slide, and a climb hop over the top of walls.
Before you write code, look at my project: the engine and language, the player controller, how it detects the ground, moves and reads input, whether movement runs in a fixed physics step, how moving platforms, one-way platforms, slopes and walls are built, and my tile size. Change my existing code instead of writing a second system, and keep my current speeds, gravity and jump. If something this needs doesn't exist yet (crumbling blocks, moving solids, one-way platforms, slopes, climbing, a duck hitbox), ask me before inventing it. Make the new values settings I can tweak, where the off value brings the old behavior back. If I already have some of these, keep mine and tell me how they differ.
## How it works
- Crumble grace: a crumbling block starts a timer when the player first stands on it, shakes its sprite while the timer runs, then falls and later comes back.
- Falling block jump: when leaving a moving platform, add its speed to the player's, but never its downward part, and cap the rest.
- Jump-through assist: in the air, moving up, overlapping a one-way platform: move up a little extra each tick.
- Slope snap: after a move, if the player was on the floor, isn't jumping and is now just above the floor, put it back on the floor.
- Squish duck: moving solids shove the player 1 px at a time; a blocked step tries the duck body, then a small wiggle, then kills.
- Wall slide: falling while holding into a wall lowers the top fall speed, which grows back over the slide time; the slide time resets on the ground.
- Climb hop: while climbing, when the wall ends below the chest, hop up and over and ignore left and right for a moment.
## Numbers that matter
Everything is at Celeste's scale: 8 px tiles, an 8 x 11 px body, 60 ticks a second, run 90 px/s, gravity 900 px/s^2, jump 105 px/s, top fall speed 160 px/s. Multiply px values (speeds, gravity, distances) by my tile size / 8 and keep the times.
- Crumble: shake 0.35 s (21 ticks), 1 px; fall 500 px/s^2 up to 160 px/s; three 16 px blocks are crossable, with 0 s the first drops at once.
- Falling block: keep up to 250 px/s sideways and 130 px/s up, never down. On a block sinking at 80 px/s the jump leaves at 105 px/s instead of 25.
- Jump-through assist: 40 px/s. Adds 4.9 px to a held jump, enough to land on a platform 2.7 px out of reach.
- Slope snap: 4 px. A 45 degree slope at 90 px/s drops 1.5 px a tick; 1 px of snap is too short, 1.6 px works.
- Squish: duck body 8 x 6 px, wiggle up to 3 px. An 8 px gap gets ducked through, 5 px kills.
- Wall slide: cap = lerp(160, 20, time_left / 1.2). 30, 88 and 158 px/s after 0.1, 0.6 and 1.2 s.
- Climb: 45 px/s up; hop 120 px/s up and 100 px/s over, ignoring left and right for 0.2 s; with the hop off, slip 30 px/s at the lip.
- Every trick is a setting with an off value: 0 for the times, speeds and sizes, false for the falling block jump, the duck and the hop.
## Pseudo code
```
every fixed tick:
if on_ground(): slide_left = wall_slide_time
if jump pressed on ground: velocity.y = -jump_speed
else if climbing: climb_tick() # climb 45 up, slip check, hop or slip
else if not on_ground():
cap = max_fall
if velocity.y >= 0 and pressing into a wall and wall_slide_time > 0:
cap = lerp(max_fall, wall_slide_start, slide_left / wall_slide_time)
slide_left = max(slide_left - dt, 0)
velocity.y = move_toward(velocity.y, cap, gravity * dt)
velocity.x = hop_dir * hop_x if hop_ticks > 0 else input_x * run_speed
move()
if was_on_ground and in the air and velocity.y >= 0 and not jumped: snap down up to slope_snap
if leaving a platform: velocity += (clamp(p.x, -250, 250), clamp(p.y, -130, 0))
if in the air and velocity.y <= 0 and overlapping a one-way platform: move_up(40 * dt)
moving solid shoves the player: push_h(dx) 1 px at a time; blocked -> squish():
duck body if it fits, else wiggle up to 3 px, else die
crumbling block: on first stand start timer; shake 0.35 s; then fall and later reset
```
Godot: `floor_snap_length` and `platform_on_leave = PLATFORM_ON_LEAVE_ADD_UPWARD_VELOCITY` cover two of these; one-way platforms on their own layer for the assist's overlap test. Unity: snap with a short BoxCast down, add platform velocity yourself.
## Pitfalls
- A crumbling block that never comes back strands a player who dies past it. Start its timer only from standing on top.
- Adding a platform's downward speed weakens jumps; adding nothing makes jumps off fast sideways platforms feel stuck. Keep sideways and up.
- Slope snap must skip the tick a jump starts and any tick the player moves up.
- Only assist while moving up, or a falling player hovers inside one-way platforms.
- Kill on a squish only after the duck and the wiggle failed.
- If my variable jump holds a fixed jump speed while the button is held, hold the take-off speed after the platform's speed was added instead.
- Reset the wall slide time on the ground (Celeste also on every jump), never on a wall touch.
## Check that it works
- Three crumbling 16 px blocks are crossable at 90 px/s with 0.35 s, not with 0.
- A jump off a block sinking at 80 px/s leaves at 105 px/s up.
- A held jump lands on a one-way platform 29 px up with the assist, falls back through without it.
- Down a 45 degree slope at 90 px/s: on the floor every tick with 4 px snap.
- An 8 px gap: ducked through; 5 px: dies.
- Wall slide: about 30 px/s after 0.1 s, 158 after 1.2 s.
- Climbing a 40 px wall: on top with the hop, stuck under the lip without it.
- With every trick off, each case behaves like before.
Source: SpriteCook (2D game assets made by your coding agent, for Claude, ChatGPT and Cursor)
Full guide with all seven ground tricks, a video of each and a tested Godot project: https://www.spritecook.ai/blog/platformer-slopes-one-way-platforms-wall-slide-crumbling-blocksI spent weeks on my platformer's jump and left everything the player stands on at the engine default. That's where most of the "this feels janky" came from. Falling through a crumbling bridge you never had a chance to cross. A jump that does nothing because the floor was moving. A miss by one pixel on a one-way platform. Here are seven small tricks for the ground, the platforms and the walls, most of them straight from Celeste's code.
Every clip on this page runs the same input twice, first with the trick off, then with it on. Where the first run fails, its path stays on screen as lavender dots. The miner and the mining rig were generated by a coding agent with SpriteCook.
All numbers are at Celeste's scale: 8 px tiles, an 8 x 11 px body, running at 90 px/s. If your tiles are 16 px, double the px values and keep the times.
1. Crumbling blocks that shake first
That's the clip at the top. The naive crumbling block falls the moment something lands on it: the player lands, the floor is gone, and there was never a way across.
Start a timer when the player first stands on the block, shake it while the timer runs, and drop it after. In my Godot test the bridge is three 16 px blocks. With 0.35 s (21 ticks) of shake, the player runs 31.5 px before the first block drops, and makes it to the far side. With 0 the first block goes the moment he lands, and he goes with it. Celeste's crumble blocks work the same way, shaking before they go, but their code isn't in the public player file, so the 0.35 s is my number.
The shake is the important part. It tells the player the block is going, so a fall feels like their mistake instead of the game's.
2. A full jump off a falling block
Say a block starts dropping when you land on it, and you jump off. Godot, and a lot of hand-written controllers, add the platform's whole speed to your jump when you leave it, down included. So the faster the block falls, the weaker your jump. Past a point you just drop with it.
Celeste keeps the platform's speed when you jump, but only the useful part. Its LiftBoost caps the sideways speed at 250 px/s and the upward speed at 130 px/s, and throws any downward speed away. A jump off a falling block is always a full jump.
In my Godot test, on a block sinking at 80 px/s, adding all of its speed makes the jump leave at 25 px/s instead of 105, and it rises 5 px instead of 25. At 160 px/s it doesn't rise at all. Throwing the downward part away gives the full 105 px/s jump both times.
In Godot this is one setting. CharacterBody2D.platform_on_leave defaults to PLATFORM_ON_LEAVE_ADD_VELOCITY, which adds the downward speed too. Set it to PLATFORM_ON_LEAVE_ADD_UPWARD_VELOCITY.
3. Jump-through assist
One-way platforms you can jump up through from below. A jump that tops out with the feet a couple of pixels under the top falls straight back through, even though on screen the character was right there.
While the character is in the air and still moving up, and its body overlaps a one-way platform, move it up a little extra: 40 px/s, Celeste's JumpThruAssistSpeed. Once the jump turns to falling the push stops, so it only helps jumps that were going up through the platform anyway.
In my test a held jump from the floor peaks 26.3 px up. A one-way platform with its top 29 px up is 2.7 px out of reach, so the character falls back through. The assist adds 4.9 px on the way up, enough to land on top. It only ever adds a few pixels, so it fixes near misses and nothing else.
4. Slope snap
Running down a slope, every tick the character moves sideways first and the ground drops away under it. Gravity needs a few ticks to catch up, so the character hops down the slope in small arcs. It looks shaky, the run animation flickers to the fall pose, and a jump pressed mid-hop does nothing.
The fix: after a move on the ground, if the character is suddenly in the air but there's floor a few pixels below and it isn't jumping, put it back on the floor. Godot calls this floor_snap_length. Celeste has no slopes, so this one isn't from Celeste.
On a 45 degree slope at 90 px/s the ground drops 1.5 px every tick. Godot's default snap of 1 px is too short for that: in my test the character was off the floor 50 of the 56 ticks on the way down, the same as with no snap at all. From 1.6 px up it stays on the floor every tick. I use 4, which leaves room for faster runs and steeper slopes. Jumping still works with snap on, because Godot doesn't snap while the character moves up.
5. Squish duck
A moving wall or block pushes the character toward a gap that's too low to stand in. In most games that's an instant death, or the character gets stuck inside the wall.
Celeste's OnSquish runs when a moving solid pushes the player into another solid. First it tries ducking: if the 8 x 6 px duck body fits there, the player ducks and lives. Then it tries wiggling the player a few pixels to a free spot. Only if both fail does the player die.
In my test a wall shoves the character toward a gap 8 px tall. The 11 px standing body doesn't fit, the 6 px duck body does, so the character ducks, gets pushed through and stands back up on the other side. With the trick off the same shove kills. A 5 px gap kills either way. Celeste's wiggle lives in its engine code, not the public player file, so the 3 px is mine: it lifts the character onto a step 2 or 3 px tall, and a 4 px step still kills.
6. Wall slide
Falling down a shaft next to a wall at full speed, there's no time to do anything. A doorway in the wall flies past before the player can steer into it.
While falling and holding toward a wall the character touches, lower the top fall speed. Celeste starts it at 20 px/s and eases it back to the normal 160 over 1.2 s of sliding (WallSlideStartMax and WallSlideTime). The 1.2 s resets when the player lands, so a slide can't last forever.
Measured in Godot, the fall speed while sliding is 30 px/s after 0.1 s, 88 after 0.6 s and 158 after 1.2 s. Without the slide it's 90, 160 and 160.
7. Climb hop
If your character can climb walls, the top of the wall is where it goes wrong. The hands reach the top, the feet are still on the wall, and the climb just stops there. The player has to jump off the wall to get up.
While climbing, check two points just past the body on the wall side, one at the top of the head and one 4 px lower. When both are free the wall ended at the chest, so hop: 120 px/s up and 100 px/s over the top, and ignore left and right for 0.2 s so the hop can't be steered back. Those are Celeste's ClimbHopY, ClimbHopX and ClimbHopForceTime. When something blocks the hop, Celeste stops the climb at the lip and slips the player down at 30 px/s (ClimbSlipSpeed). The first run in the clip does that.
In my test the character climbs at 45 px/s, Celeste's ClimbUpSpeed. With the hop the character ends up standing on top of a 40 px wall. Without it, holding up for 3 s, the feet never get higher than 5.9 px under the top.
The code
Six of the tricks live in one Godot 4 script for a CharacterBody2D with an 8 x 11 px box, and the crumbling block is a script of its own. Each trick is a setting with an off value. It uses Godot's built-in ui_left, ui_right, ui_up and ui_accept actions, so it runs in an empty project.
player.gd: the controller and six tricks (falling block jump, jump-through assist, slope snap, squish duck, wall slide, climb hop)crumble_block.gd: a block that shakes, then falls, then comes backfalling_block.gd: a block that sinks once you stand on it, to test jumps off itplay.tscn: a gray-box level with all seven, keys 1 to 7 switch each trick off and ontest.tscn: the tick-by-tick checks below
This runs every tick. Two of the tricks are plain Godot settings: floor_snap_length for the slope and platform_on_leave for the falling block.
func _physics_process(delta: float) -> void:
if dead:
return
var axis := Input.get_axis("ui_left", "ui_right")
var holding := Input.is_action_pressed("ui_accept")
floor_snap_length = slope_snap
platform_on_leave = PLATFORM_ON_LEAVE_ADD_UPWARD_VELOCITY if full_jump_off_falling \
else PLATFORM_ON_LEAVE_ADD_VELOCITY
if _ducking and not _hits(stand_size, _solid()):
_set_size(stand_size) # out of the low gap: stand back up
var jumped := is_on_floor() and Input.is_action_just_pressed("ui_accept")
if is_on_floor():
_slide_left = wall_slide_time
if jumped:
velocity.y = -jump_speed
_hold_ticks = roundi(var_jump_time * Engine.physics_ticks_per_second)
elif not _climb(axis) and not is_on_floor():
velocity.y = move_toward(velocity.y, _fall_cap(axis, delta), gravity * delta)
if _hold_ticks > 0: # variable jump
_hold_ticks = _hold_ticks - 1 if holding else 0
if holding and not jumped:
velocity.y = minf(velocity.y, _var_speed)
if _hop_ticks > 0:
_hop_ticks -= 1
velocity.x = _hop_dir * hop.x # the climb hop ignores left and right for a moment
else:
velocity.x = axis * run_speed
move_and_slide()
if jumped:
_var_speed = velocity.y # the take-off speed after Godot added the block's speed, or did not
if is_on_ceiling():
_hold_ticks = 0
_jumpthru(delta)
The jump-through assist, a few pixels of lift while rising inside a one-way platform:
# Rising through a one-way platform: lift the body a little faster so the feet make it over the top.
func _jumpthru(delta: float) -> void:
if jumpthru_assist > 0.0 and not is_on_floor() and velocity.y <= 0.0 \
and _hits(_box.shape.size, jumpthru_layers):
move_and_collide(Vector2(0.0, -jumpthru_assist * delta))
And the squish. Moving solids shove the player with push_h, 1 px at a time, and a shove that hits a wall tries the duck box first, then the wiggle:
# A moving solid calls this to shove the body dx px sideways, 1 px at a time.
# Pass the pusher so the body does not collide with it on the way.
func push_h(dx: float, pusher: CollisionObject2D = null) -> void:
if pusher:
add_collision_exception_with(pusher)
while absf(dx) > 0.0 and not dead:
var step := clampf(dx, -1.0, 1.0)
var hit := move_and_collide(Vector2(step, 0.0))
if hit and not _squish(hit.get_remainder()):
dead = true
velocity = Vector2.ZERO
died.emit()
dx -= step
if pusher:
remove_collision_exception_with(pusher)
# Shoved into a wall: duck if the short box gets through, else wiggle up to wiggle_px to a free spot.
func _squish(rest: Vector2) -> bool:
if not squish_duck:
return false
if not _ducking:
_set_size(duck_size)
if not test_move(global_transform, rest):
global_position += rest
return true
for y in wiggle_px + 1:
for x in wiggle_px + 1:
for off in [Vector2(x, -y), Vector2(-x, -y), Vector2(x, y), Vector2(-x, y)]:
if (x or y) and not _hits(_box.shape.size, _solid(), rest + off):
global_position += rest + off
return true
return false
The wall slide, the climb and the crumbling block are in the Godot project (13 KB), with the gray-box level and the tests.
Tested in Godot 4.6 with scripted input, tick by tick, at 60 ticks a second:
- Base jump: a tap rises 7.1 px, a full hold 26.3 px.
- Crumble grace: with 0.35 s the first block drops 21 ticks after the player lands on it, 31.5 px of running later, and the player crosses all three blocks. With 0 the player falls with the first one.
- Falling block jump: on a block sinking at 80 px/s the jump leaves at 105 px/s and rises 25 px. Adding all of the block's speed it leaves at 25 px/s and rises 5.2 px; at 160 px/s it doesn't rise at all.
- Jump-through assist: a held jump peaks 2.7 px under a one-way platform 29 px up and falls back through. With the assist it peaks 4.9 px higher and lands on top.
- Slope snap: running down a 45 degree slope at 90 px/s, off the floor 50 of 56 ticks with no snap or Godot's default 1 px, 0 ticks from 1.6 px up. A jump on the slope with snap 4 still leaves at 105 px/s.
- Squish duck: shoved toward an 8 px gap the player ducks, gets through and stands up after; with the trick off the player dies. A 5 px gap kills either way. The 3 px wiggle gets the player onto a 2 or 3 px step, not a 4 px one.
- Wall slide: 30, 88 and 158 px/s after 0.1, 0.6 and 1.2 s of sliding; 90, 160 and 160 without it.
- Climb hop: climbing at 45 px/s, the player ends on top of a 40 px wall. Without the hop the feet stay at least 5.9 px under the top for 3 s.
- With all seven off at once, every case ends the same as with just that trick off.
Other engines
None of this needs Godot. In Unity a Rigidbody2D character gets no floor snap and no platform speed for free: snap with a short Physics2D.BoxCast down after each grounded move, and add the platform's velocity yourself when the character leaves it, skipping the downward part. The squish needs your moving platforms to push the player through code you control, so you can try the duck box before you kill. In your own tile engine all seven are a few lines in the movement code.
Common pitfalls
A crumble block that never comes back. Respawn it a couple of seconds after it falls, or a player who dies on the far side can't cross again. Only start the timer from standing on top, not from touching its side.
Taking the platform's speed on every jump. Adding a platform's downward speed makes jumps off falling blocks weak, and adding no speed at all makes jumps off fast sideways blocks feel like they hit a wall. Keep sideways and upward, drop downward.
Snapping during a jump. Slope snap must skip the tick a jump starts, or the floor pulls the character back down and the jump never happens. Snap only when the character was on the floor the tick before.
A jump-through assist that lifts falling characters. Only push while the character moves up. Pushing a falling character up through a platform makes it hover inside it.
Killing on any overlap. A squish check that kills on any overlap with a moving solid also kills for overlaps the duck or a 1 px wiggle would fix. Try the duck body first, then the wiggle, then kill.
A wall slide that never runs out. Reset the slide timer on the ground (Celeste also resets it on every jump), never on a wall touch. Reset it on every wall touch and the player can hang on a wall forever by tapping away and back.
Where to next
- Coyote time, jump buffering and corner correction, the same kind of small fixes for the jump itself
- Hit stop, hit flash, knockback and 5 more ways to make hits feel heavy
- Eight 2D camera follow techniques, for a camera that keeps up with falls and climbs
- Celeste's Player.cs, where most numbers on this page come from, and Maddy Thorson's Celeste and TowerFall Physics on how moving solids carry and push actors
- Godot's CharacterBody2D docs, for
floor_snap_lengthandplatform_on_leave
Add this to your game with your coding agent
The prompt has the numbers, pseudo code, pitfalls and checks from this guide, written so your agent can fit it into your own project.
Copied. Want one of these every week?
The week's game techniques in one free email on Sunday, each with a prompt like this one.
# Add seven ground tricks to my platformer
My 2D platformer's jump is fine, but what the player stands on feels janky. Add these small tricks, most of them from Celeste's player code: crumbling blocks that shake before they drop, a full jump off falling blocks, a jump-through assist for one-way platforms, slope snap, ducking into tight gaps instead of being squished, a wall slide, and a climb hop over the top of walls.
Before you write code, look at my project: the engine and language, the player controller, how it detects the ground, moves and reads input, whether movement runs in a fixed physics step, how moving platforms, one-way platforms, slopes and walls are built, and my tile size. Change my existing code instead of writing a second system, and keep my current speeds, gravity and jump. If something this needs doesn't exist yet (crumbling blocks, moving solids, one-way platforms, slopes, climbing, a duck hitbox), ask me before inventing it. Make the new values settings I can tweak, where the off value brings the old behavior back. If I already have some of these, keep mine and tell me how they differ.
## How it works
- Crumble grace: a crumbling block starts a timer when the player first stands on it, shakes its sprite while the timer runs, then falls and later comes back.
- Falling block jump: when leaving a moving platform, add its speed to the player's, but never its downward part, and cap the rest.
- Jump-through assist: in the air, moving up, overlapping a one-way platform: move up a little extra each tick.
- Slope snap: after a move, if the player was on the floor, isn't jumping and is now just above the floor, put it back on the floor.
- Squish duck: moving solids shove the player 1 px at a time; a blocked step tries the duck body, then a small wiggle, then kills.
- Wall slide: falling while holding into a wall lowers the top fall speed, which grows back over the slide time; the slide time resets on the ground.
- Climb hop: while climbing, when the wall ends below the chest, hop up and over and ignore left and right for a moment.
## Numbers that matter
Everything is at Celeste's scale: 8 px tiles, an 8 x 11 px body, 60 ticks a second, run 90 px/s, gravity 900 px/s^2, jump 105 px/s, top fall speed 160 px/s. Multiply px values (speeds, gravity, distances) by my tile size / 8 and keep the times.
- Crumble: shake 0.35 s (21 ticks), 1 px; fall 500 px/s^2 up to 160 px/s; three 16 px blocks are crossable, with 0 s the first drops at once.
- Falling block: keep up to 250 px/s sideways and 130 px/s up, never down. On a block sinking at 80 px/s the jump leaves at 105 px/s instead of 25.
- Jump-through assist: 40 px/s. Adds 4.9 px to a held jump, enough to land on a platform 2.7 px out of reach.
- Slope snap: 4 px. A 45 degree slope at 90 px/s drops 1.5 px a tick; 1 px of snap is too short, 1.6 px works.
- Squish: duck body 8 x 6 px, wiggle up to 3 px. An 8 px gap gets ducked through, 5 px kills.
- Wall slide: cap = lerp(160, 20, time_left / 1.2). 30, 88 and 158 px/s after 0.1, 0.6 and 1.2 s.
- Climb: 45 px/s up; hop 120 px/s up and 100 px/s over, ignoring left and right for 0.2 s; with the hop off, slip 30 px/s at the lip.
- Every trick is a setting with an off value: 0 for the times, speeds and sizes, false for the falling block jump, the duck and the hop.
## Pseudo code
```
every fixed tick:
if on_ground(): slide_left = wall_slide_time
if jump pressed on ground: velocity.y = -jump_speed
else if climbing: climb_tick() # climb 45 up, slip check, hop or slip
else if not on_ground():
cap = max_fall
if velocity.y >= 0 and pressing into a wall and wall_slide_time > 0:
cap = lerp(max_fall, wall_slide_start, slide_left / wall_slide_time)
slide_left = max(slide_left - dt, 0)
velocity.y = move_toward(velocity.y, cap, gravity * dt)
velocity.x = hop_dir * hop_x if hop_ticks > 0 else input_x * run_speed
move()
if was_on_ground and in the air and velocity.y >= 0 and not jumped: snap down up to slope_snap
if leaving a platform: velocity += (clamp(p.x, -250, 250), clamp(p.y, -130, 0))
if in the air and velocity.y <= 0 and overlapping a one-way platform: move_up(40 * dt)
moving solid shoves the player: push_h(dx) 1 px at a time; blocked -> squish():
duck body if it fits, else wiggle up to 3 px, else die
crumbling block: on first stand start timer; shake 0.35 s; then fall and later reset
```
Godot: `floor_snap_length` and `platform_on_leave = PLATFORM_ON_LEAVE_ADD_UPWARD_VELOCITY` cover two of these; one-way platforms on their own layer for the assist's overlap test. Unity: snap with a short BoxCast down, add platform velocity yourself.
## Pitfalls
- A crumbling block that never comes back strands a player who dies past it. Start its timer only from standing on top.
- Adding a platform's downward speed weakens jumps; adding nothing makes jumps off fast sideways platforms feel stuck. Keep sideways and up.
- Slope snap must skip the tick a jump starts and any tick the player moves up.
- Only assist while moving up, or a falling player hovers inside one-way platforms.
- Kill on a squish only after the duck and the wiggle failed.
- If my variable jump holds a fixed jump speed while the button is held, hold the take-off speed after the platform's speed was added instead.
- Reset the wall slide time on the ground (Celeste also on every jump), never on a wall touch.
## Check that it works
- Three crumbling 16 px blocks are crossable at 90 px/s with 0.35 s, not with 0.
- A jump off a block sinking at 80 px/s leaves at 105 px/s up.
- A held jump lands on a one-way platform 29 px up with the assist, falls back through without it.
- Down a 45 degree slope at 90 px/s: on the floor every tick with 4 px snap.
- An 8 px gap: ducked through; 5 px: dies.
- Wall slide: about 30 px/s after 0.1 s, 158 after 1.2 s.
- Climbing a 40 px wall: on top with the hop, stuck under the lip without it.
- With every trick off, each case behaves like before.
Source: SpriteCook (2D game assets made by your coding agent, for Claude, ChatGPT and Cursor)
Full guide with all seven ground tricks, a video of each and a tested Godot project: https://www.spritecook.ai/blog/platformer-slopes-one-way-platforms-wall-slide-crumbling-blocksMore game techniques
All techniques
9 health bar tricks for a 2D game, from HP text to a bar that liesNine health bar tricks stacked on one fight, from plain HP text to a smooth drain, a damage trail, shake and flash, a heal trail, color by health, a low HP warning and a last sliver that lasts longer than it looks. With the timing numbers and tested Godot code.
9 ways to make a platformer jump feel good, from variable height to wall jumpsA plain gravity jump works, but it feels stiff and unfair. Nine small tricks that fix it, from variable jump height, fast fall and apex hang to coyote time, jump buffering, corner and ledge correction, wall jump reach and squash and stretch, with Celeste's numbers, tested Godot code and a prompt for each.
