Fix climbing from a ceiling lip onto the wall above #1
Loading…
Reference in a new issue
No description provided.
Delete branch "fix-lip-wall-climb"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Pressing up while hanging on a ceiling lip did nothing. The lip state set both velocities to 0, so the slime never touched the wall above. It only reached the wall when the last step off the ceiling happened to catch the corner as a wall contact, which depends on exact positioning.
Changes (
Characters/player.gd)CLIMB_SPEEDand slightly back towards the platform (WALL_STICK_SPEED, opposite to the direction it walked off). The round collision shape slides around the corner and touches the wall, and the existing wall-sticking code takes over.wasJustOnCeiling != isStickingToCeiling) also fired when landing on a ceiling (freezing horizontal movement for 0.5s) and when dropping off with down. It now requires leaving the ceiling while moving sideways, and recordslipDirection.print(velocity.x).Testing
Not run in Godot yet. Please check:
One possible issue: if the corner contact registers as wall and ceiling in the same frame while up is held, the existing corner rule prefers the ceiling, which could bounce the slime back into the ceiling state.
🤖 Generated with Claude Code