I once faked sorting in a fun/test-project 2d sidescroller using the Y+Z axis of the sprites. Player can walk up and down + left and right. Up and Down is handled via Y pos (to sort sprites) + Z pos (visual movement) of sprites.
Maybe theres a smarter solution but for me it worked ok.


Acknex umgibt uns...zwischen Dir, mir, dem Stein dort...
"Hey Griswold ... where u gonna put a tree that big ?"
1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected
rayp.flags |= UNTOUCHABLE;