Question by
athormah · Sep 03, 2018 at 01:03 AM ·
2d gameunity 2dunityeditorsorting layerssorting order
How do you selectively mask objects based on what side they are on?
Hey everyone, So I am working on the finishing touches of my game and I noticed that I have this sorting issue. My wall you see is in 2 pieces, one is in the foreground and the back side is in the midground. The point of that is so when the player is on the left side of the wall that he appears in front, and when he is on the right that he appears behind. For the most part this method worked out great, but if you attack, his head comes through wall since it crosses over where the 2 parts of the wall meet. So is there a way to set the wall up so to read what side the player is on so he is either in front or behind it?
Comment