Hi people!
I was wondering if someone could point me in the direction to this problem, I’ve looked around and can’t seem a good solution to it.
My difficulty is making a sort of depth in this top down project where the player can be in front of AI and objects while also being able to move behind where the AI and the objects in question are then in front of the player, sort of like Legend of Zelda’s top down games.
I found using sorting layers I could have the Player character(BLUE) be in front of the AI(RED) but this also meant this:
These are also using 2D box colliders this is making the whole standing on shoulders thing but I was wondering where I can find a tutorial/script where I can change the Sorting Layers or something similar so that the player can move in front and behind things. Thank you.
Its okay now! while waiting I went on a hunt and found a c# script that would help me do the task I wanted! If any other person is stumped by this I found it here: Top-Down View Depth - Unity Engine - Unity Discussions
I hope this helps any other new person to top down games
2 Likes
thank you so much, ik your post is old, but helped me sooo much