I am having an issue with the walls in my game. I have set them as objects and used the script:
depth = -y;
inside their create event.
However, when I walk my character in front of them, the correct depth is only kept until the character kindof goes half in front of the wall.
These are the collision shapes
And this shows how I inherit from one door parent and add the depth = -y; script to the create event of the wall child.
My character also has depth = -y; but on its step event.