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 isonwall(), 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.