godot-platformer-2d icon indicating copy to clipboard operation
godot-platformer-2d copied to clipboard

The character can get stuck in the hook state

Open NathanLovato opened this issue 4 years ago • 0 comments

In some rare cases, you can get stuck in the hook state. This happens if the character's KinematicBody2D slides against the environment in such a way it gets stuck against a collider.

Possible solution: the hook state could use the raycast to "break" the hook if the character ends up getting stuck. We can also add a safety timer that sends you to the Air state after 1 or 2 seconds or upon getting stuck.

NathanLovato avatar Mar 29 '20 23:03 NathanLovato