05-31-2014, 05:38 PM
What is "a"?
What is "rndrbackid", and magic number "4321"?
+1 to Blue Phoenix's comment, I might expand on it. Every frame:
Remove objects that are dead (to be deleted) from the list of on screen objects
Sort remaining objects (smallest to biggest z)
Render objects.
p/s: don't make a map of object -> z position
Azriel~
What is "rndrbackid", and magic number "4321"?
+1 to Blue Phoenix's comment, I might expand on it. Every frame:
Remove objects that are dead (to be deleted) from the list of on screen objects
Sort remaining objects (smallest to biggest z)
Render objects.
p/s: don't make a map of object -> z position
Azriel~

Chat
![[Image: ZucdcMY.png]](https://i.imgur.com/ZucdcMY.png)