So i'm working on a platformer https://scratch.mit.edu/projects/976977265/ and i'm currently working on the death system. For drawing stuff i use a weird hybrid of stamp and sprite-based drawing, i update the sprite's positions using broadcasts and move them to front every time as if it was stamped, just makes it easier to order the layers correctly. Ironically enough, the layers are not ordering correctly, making the player go in front of everything else after dying and then respawning, but then fixing itself after pressing the green flag and i'm completely stumped. All of the ordering is done each frame and the same code is used before and after respawning, so i really don't know what could be causing this. I think my code is pretty self-explanatory, but if you want to help out and don't understand why i did something some way and how it works, please feel absolutely free to ask. thanks in advance.