Making a Z order system: Easy

You're viewing a single comment in a conversation. View all the comments
  • 3 Comments

  • Order by
  • 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