Hello everyone!
I have some problem with platforms in 2D project. The thing is, that platform I’m using for my character to stand on has the protruding rim, which overlaps my character like on picture. Platform has Box Collider, Platform Effector, so the knight can jump through it. An issue appears, when character is jumping below the box collider, it’s still overlapping character, like on the second picture. How should I fix this? Change the Order in layer by script, or use some sort of animation to make the barrier transparent and visible when character is higher than certain point? And what functions and commands in C# can change the Order in layer?
I would be very grateful if someone help with this issue. Thanks for the attention!