Stage::enableYSort()
Enables the sorting of sprites using y-sorting. This means that sprites with a lower y-coordinate will be drawn on top of sprites with a higher y-coordinate. This sorting respects the height of the sprites. This overwrites goToBackLayer(), goToFrontLayer(), goLayersBackwards() and goLayersForwards().
Syntax
Java
.enableYSort()
Return
void
