GOAL
To sort instances of the enemy Hunters and the main character, Buster, according to their Y position in the layout so that characters farther up on the layout appear behind characters farther down. This needs to be updated every tick as characters - enemies and Buster alike - move around.
SET UP
I created two Families with the same sprite objects to compare instances of the Hunter character against each other as if they were literally two separate objects. Buster and the Hunters will be in front of or behind each other depending on their position on the Y axis. The idea is that the camera is above and slightly behind the characters for that "angled down and forward" perspective...albeit in 2D.
PROBLEM
...The problem is that it's not working (why else would I make this post, right?).
Basically, what I want to do is what you can see in this image...but reversed. What's in the image is backward from what I want. The problem is that I have tried swapping out the conditions in various arrangements but I cannot get it to work right. Sometimes one instance will work properly but the others will not. In one case, as I moved Buster up and down, the Hunter instances would move in front and to the back of each other for no apparent reason (they're all stationary except for Buster).
This is my latest event sheet attempt... At one point, I had this working for the Hunter instances but I had forgotten to account for Buster as he moved along. And thus my new problem here.
Your help would be greatly appreciated. Thank you.