How do I stop the walk animation for my player when they walk into a wall?

Thank you for this, apologies for the late reply. I think I’ve nailed down the issue, but I’m not sure how exactly to fix it? So I think the problem lies within the collision_anim function. Every time a collision is detected it is called, so even if the player is colliding with the side of the object, another collision, say the floor will also be passed into this function, setting the values of r_colliding and l_colliding to false.

I only want to account for the side collisions, but I’m not sure how to do this.

Thank you for your responses :slight_smile: