In this tutorial I will go over the simplest way to make a Z sorting system. This system is very simple to write and to understand. On every frame, we want to r...
I would recommend to add a "ZOrder Is on-screen" condition.
It helps greatly with performance and has no disadvantages as long as it's only a visual thing and not part of the collision system, like in the later tutorials of this course.
I will have to say thats wrong. "ZOrder is on-screen" checks for ANY ZOrder object on the screen, and then sorts ALL of them anyway. I went with "Pick by comparison: distance between ZOrder and MC <3000" and saved 5% of CPU load, while simple on screen condition did not do anything at all
I made that comment 4 years ago, the tutorial was since updated and shows a completely different method which wasn't available at the time.