I'm sorry I hope I can explain it clearly. I'm not good at communication.
How do I re-arrange overlapping object according to it's Y position in run time?
I want to make movement like 2D rpg. But I have a problem in this overlaping object.
Video of the problem: youtu.be/tgq4lqIeYNA
My problem:
What I want to achieve:
Those objects will destroy and spawn overtime. And there will be more than 5 same object at the same time that probably switching place and overlap like that.
What's the best way to fix it?
Thank you. <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy" />
(Below is not important but might help expressing what I mean)
The red square below is the foot collision area. (I haven't implemented it yet in the video above)