I'm trying to create a simple character customizer. I have sprites for different elements like head, eyes, nose, etc. all in one container. In the layout tab, everything is arranged correctly in a specific Z order. If I run the program, everything is arranged correctly. But if I run an event to create a new character, all the sprites are created but are arranged out of order.
I'm not sure why this is happening. Do containers not preserve the Z order? Is there something I'm not understanding about how Z-level is determined when objects in a container are created?