So in my game, Sprite1 gets destroyed and a new Sprite1 gets created but so does Sprite2. I would like Sprite2 to stay in the foreground but instead I noticed that the newly created Sprite1 is in the foreground and Sprite2 is behind it.
You can move objects to the front of layer with an action, you can do this every tick and the list of actions from top to bottom means the ones at the bottom are more towards the front. Or you can move it to front of layer when you create it.
Develop games in your browser. Powerful, performant & highly capable.
Oh! I thought the objects at the top were closer to the front? I think that is how I've been working this whole time and just now had an issue.
Thanks a bunch! I didn't even think to use a constant action (every tick) to rearrange the objects.