My player can stick to wall if i keep pressing forward or backward button

image

how can i stop it ?

Hi Abhijeet,

This is a known issue. Rick solves it in lecture “Prevent Wall Jump”. Have you already watched that video?

If you haven’t implemented the jump feature yet, try to set the Collision Detection of the player’s Rigidbody2D component to “Continuous”. Maybe that’ll fix it.

If it did not, check the tilemap collider. Sometimes, the shape has got gaps. In that case, disabling and reenabling the TimemapCollider component might help.


See also:

Reached the video problem is fixed, thank you

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms