Hi,
So I need to dynamically send objects to the top or bottom of the layer.
When the player's Y is greater than the bush's, put the player on top, when is lower, put on bottom, like the pictures:
The only way I've found to make it work is a for each loop that happens constantly, this is of course awful performance-wise:
I've tried to only do it when the player is overlapping the bush, or every 0.1 seconds, but nothing else works.
Thanks!