is_on_wall() is inconsistent

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Kekd


I am making a platformer and I wanted to make a wall jump, if the player is against a wall, they can jump off it.
I am using is_on_wall(), but sometimes the function returns false even though the player is moving against a wall.
This makes the wall jump inconsistent, as the wall sometimes doesn’t register. How can I fix this?
Everything else about the wall jump code works fine, btw. It’s just the check if the player can wall jump that works inconsistently.

:bust_in_silhouette: Reply From: exuin

Try using a very short Raycast2D to detect walls.

This works perfectly, thanks :slight_smile:

Kekd | 2021-04-21 21:03