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 ?
%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20210503091742

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.