Please help! Question about movement

Here is a link to my game:

This is my problem:

  1. Player runs into a wall
  2. I continue to hold the button that makes them push up against the wall
  3. Player jumps, with me still holding the sideways movement button
  4. I release sideways movement button just after clearing the wall and landing on top of the next level
  5. Even though I am not pressing ANY buttons, the player still continues to move sideways until almost 32 pixels (1 block) later.

It almost seems like the player’s friction is just turned completely off after this happens, and I have no idea why. Any help or insight would be greatly appreciated!

1 Like

I’m not sure if this is a bug or what, but it happened using the Capsule shape for my player. I am just going to switch to Circle. If anyone has any info about this, please let me know. But for now I will just forget it.

You could try setting his hitbox to polygon and the sliding seems to stop for me. Although he sticks to walls which might needs to be fixed, but it fixes the sliding problem. I think it has something to do with the new block and the character can’t configure what it is or something.

1 Like

Yeah I’ll just have to add some wall slide code. Thanks

1 Like