[Solved] How to use YSort extension

How do I…

I don’t know how to use the Ysort extension. I added it to my player object so that the player could walk behind and in front of trees but it does not work. I don’t have any code regarding the extension. All i did was add the behavior.

What is the expected result

The player should be behind the trees when y is lower, and in front when y is higher, as the extension says.

Related screenshots

Should not do that -

Does the tree need the YSort extension added as a behaviour too?

1 Like

I believe you need to assign the behavior to each object the player can go ahead of and behind.

1 Like

Thanks everyone! This worked.

1 Like