Re: Person Detection Issue
You would have to compare their Y values to see who should be ordered underneath who
Re: Person Detection Issue
I don't want anyone underneath anyone though. Is there a way to have players 'merge' through each other? Sort of how Runescape does it?
Re: Person Detection Issue
What perspective are you using?
Re: Person Detection Issue
2D, you are looking forward down. So a tree would stand up in front of you.
Re: Person Detection Issue
You can use the Layer object to sort the object's drawing order. Sort them using their y-position, that will make them appear to be correctly in front of/behind each other. Note that this works on their position relative to their hotspots. Be sure to keep the location of your hotspots consistent. If you are using a semi-isometric perspective or something like that, it is easiest to put the hotspot at the feet/root/bottom of whatever player or object you want to have ordered correctly.
Also note that it can be a little slow to reorder all objects all the time, so only do it once in a while or when needed. :)