Display Order Example?

Does anyone have a display order example? Say for instance, you have a tree in your game. When you go behind the tree, it appears to be in front of you, but when you go in front of the tree, it appears to be behind you.

1 Like

Always → extract(y) → display order

1 Like

Just put that it your tree and player objects

1 Like

Thank you, I will try that.

1 Like

In my flowjam game Room For None I had to do this for a lot of the walls and furniture. It’s the exact process that @Pixel_Name1 said, but if you want to see it in action it’s there

4 Likes

I think the Display order Behavior Help video shows a logic bit to do this

4 Likes

little update: I was wrong. We had that example but then replaced the idea with a simpler logic. Sorry for the misinformation.
Here is the .gif of that initial display order example:

You probably already solved this since all the other comments have a functional solution.

1 Like

Thank you very much. I will take all of your ideas in consideration and find what best suits my desires. :slight_smile: