I am thinking through the process of changing over my Z order sorting to using the new(er) event and thought I would think out-loud (here, in this post) in case anyone has any tips, as I haven't dealt with Z order much.
I'm also a little confused on dealing with this:
[quote:3d825f7p]then inserts the sorted sequence back in to the holes left behind.
This means if I have two separate families I can't really sort them separately using this? As it sounds like if the z order was ABAB it would never get changed to lets say AABB—it would always stay ABAB as the instances in the family are only changed with themselves. It would be nice to have separate families and not have to lump everything into one family.
My projection goes left when (perspective) farther away so was thinking assigning the variable based on distance from the top right. Maybe have a modifier variable that I set manually, so family instance variable = distance(top of project, right of project, instance.x, instance.y) + zModifier
Then when player and NPCs moving would it make sense, to save processing power, to use the move next to action instead of constantly resorting everything? Because if only one object is moving it seems to make sense to only move that objects z order instead of resorting everything