im making a game for me and my friends but theres this mechanic i cant seem to figure out how, i want the clone to be on the back layer if my character's position Y is lower then the clone but i dont think scratch can detect the clone's position or change it's layer once it spawned. well i can make it a whole sprite but that is only for last resort if there isnt any way to do this script. (there are also mutiple clones at once and i want them to function individually)

TDLR: anyone knows how to make a clone go back layer if my character's Y is lower than the clone's itself (mutiple clones function individually too)