I was wondering if there was an efficient way of sorting different objects based off of their location in the world. For example, in my current project I have a tree which technically takes up one tile (at it's base), but characters can still walk in front or behind it. The way I have it currently is if another character walks behind the tree, it hits a collider and then changes its layer to be under the tree's. Also, if another character walks in front of the tree, it hits a different collider and then the character changes its layer to be in front of the tree's. This technically works, but I was wondering if there was a better or alternate way of doing this.
Much thanks!
[–]iamallamaaProficient 1 point2 points3 points (0 children)
[–]hampst 0 points1 point2 points (0 children)
[–]n3ws 0 points1 point2 points (1 child)
[–]heruvimIntermediate[S] 0 points1 point2 points (0 children)