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

#1

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

0 Likes

#2

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

4 Likes

#3

Great, thank you.

0 Likes