Hey, so I have an event that generates objects behind each other. It creates them one after the other, each one lower on the Y axis than the previous one (so higher on screen). However the newest object created always seems to be the one that is displayed on top, even though it's actually behind the older objects. Is there any way I can make the oldest object always appear on top?
Now the other issue I have is that the objects generated by this event are allowed to overlap each other, but they are not allowed to overlap with certain other objects. How can I make it so they don't get generated on top of other objects?
I tried doing
'Object A overlaps with Object B' -> Destroy 'Object A', however this destroyed every single version of Object A in the game, instead of only the one that was overlapping.