Note that in my capx the origin image point of the trees and player sprites is at the bottom. Also, it doesn't look like you separated trunks from the leaves, like I suggested in my previous comment.
"Wait 0" is needed, because we have to wait 1 tick for the trees to be created, before sorting them.
"For each ordered" because we need to cycle through all trees sorted from top to bottom.
If all this doesn't help, please share your capx file.
Hi! Hope you're fine.
So, I think the problem is solved! Here's what I did:
Event sheet: https://drive.google.com/file/d/1RytVFQcr2WzHi55zN32lPd7IYF0Q_lW4/view?usp=sharing
Layout: https://drive.google.com/file/d/1fG7O97o0GIXgNuGSS6JWLCFcyxG4VaDf/view?usp=sharing
As I said in my previous post, your solution was working almost completely, the only drawback was that the instance lower down on the layout wasn't behaving like the others, so I thought I could just put the top part of an instance inside the layout and let its Y coordinate outside of it to see what would happen, and it worked fine:
Video: https://drive.google.com/file/d/1u6mUIbcgdy2uaDsrX5_TE92lQax7o-yi/view?usp=sharing
Now I just need to make that specific bottom instance invisible and it's all good.
I'm still trying to understand how to solve it with events only, without needing to go for this out of layout instance thing, but it works and I'm satisfied with the result.
Thank you so much for helping me! Have a good day!