Problem with the display of the Z order

Hello, I have a problem with the display of the Z order when I launch the game preview. I have some elements that are on the same layer, notably a sprite at Z 9 and another at Z 10, on the game display everything is fine, the one at 9 is hidden behind the one at 10 but when I launch the game preview the one at 9 is in front.
How can I correct this?
Thank you in advance !

This could be solved in a couple ways. Easiest way is to just add an action that forces the objects to always remain at a certain z order. Don’t add anything in conditions.

ans

If for some reason that doesn’t work, you could also put the objects on different layers entirely.