Wall jumping collision detection anomaly
- by Nanor
I'm creating a game where the player ascends a tower by wall jumping his way to the top. When the player has collided with the right wall they can only jump left and vice versa. Here is my current implementation:
if(wallCollision() == "left"){
player.setPosX(0);
player.setVelX(0);
ignoreCollisions = true;
…