So I'm trying to make convincing 3d like collisions in 2d, and I'm trying to do this by using detection boxes, one "front" of the object, and the other one "behind", and both have a respective collision box.
"If the player is colliding with collision-front while overlapping detection box-front, make the player stop"
The same with behind
But when the player collides with the "front" object while colliding with the "behind" object (like in the attatched picture, in the file you'll have to hold "d" or "a" in the same and similar positions to see this happening) it starts bouncing uncontrollably, and I don't know how to fix this, and I've been trying for months now.
The mfa file is the exact code I'm using in my game for you tou try it out and see what's the problem.
Please help me!