Player sticks to walls when moving left/right while jump

Hey,

So I have made a simple prototype to test this out.

I have a player who is an Arcade physics sprite and walls that are static sprites.

Whenever I press up and left my player sticks to the left wall and will not jump.

There is nothing fancy added. There is just a simple collision check too
this.physics.add.collider(this.player, this.walls);

I searched this for a good while and only thing I seem to see is setting friction to 0. I did this for both the player and the wall but no luck.

See the behavior below - the player will stop dead on the wall and then fall when I hold the left and up key.

phaser-jump-issue

Turn on physics debug. Each wall is one body or several?

Thanks @samme!

The walls are indeed individual blocks the size of the player.

phaser-jump-issue

In this gif I am holding up and left when jumping into the wall and just getting “stuck” preventing the character from moving upward.

You have to modify the body.checkCollision values where the blocks adjoin.

wall.body.checkCollision.down = false;

Thanks @samme