I have a sprite which have 3 frame colored red,blue and green.
Green one is top of the layer
Red one is the middle of the layer
Blue one is bottom of the layer
I want to do this; pick sprite instance which Y axis > the other instances y axis,move that instance which is picked in front of the other instances on layer.
Edit : I solved the problem using 'For each ordered' loop.
Sort object instances by Y co-ordinate:
+ For each Sprite order by Sprite.Y ascending
-> Sprite: send to front