I usually use UID, Zorder without any problems but for this one, I have no clue how to do it.
I would like to manage the Zorder between the same instances that are spawned each X sec.
If Sprite.Y > Sprite.Y ==> Move on top of Object Sprite
If Sprite.Y < Sprite.Y ==> Move on behind of Object Sprite
The issue, as you may probably guess, is I don't know how to get the correct Sprite.UID and even then, I'm not sure it is the correct way (duh)
I usually do the following but it does not work and it is normal that it does not:
Pick by evaluating Sprite.UID
Compare Sprite.UID is different than Sprite.UID
Sprite.Y > Sprite.Y ===========================> Move behind Sprite
I know that it is wrong but I don't find the solution after many hours of testing a few different approaches