How to make objects block each other depending on Y axis?

How do you make that, when the Y axis of the play is less than NPC, the play blocks NPC. When the Y axis of the play is larger than NPC, NPC blocks the play ?

Hey there!
Are you talking about sorting layers based on the y position of the object? Check out this tip:

5 Likes

Great, thank you.