Yeah, yoyoEleanor's example is exactly what I meant. You add all sprites to a family, add an instance variable "zsorting" to this family and z-sort by this variable. You can set this variable to sprite.Y or use a different image point or some sophisticated formula. The only drawback of this method is that you can't sort a group of sprites and other objects (say, tiled backgrounds), as it's not possible to add them to one family.