I'm having trouble with my Player walking in front of and behind some objects. I am using the events in the screen shot below to make it work:
The code works but for some reason it only works for the very last object I add, in this case Plant7. My Player can walk in front of and behind Plant7 but no longer with Plant5 and Plant6. Every time I add a new object the old Plants and Player will no longer change their Y order.
Does anyone know how to make all the objects work always?