I have two sprites, both on the same layer. On the first one, I sent it "To Back". I sent the second one "To Front". However, the first sprite is still being rendered on top of the second sprite.
Any thoughts on what I can do to fix this?
not without a cap file
Here you go. After simplifying my larger cap file down to the bare bones, it looks like the problem is caused by dynamically adding a new instance of the ShouldBeOnBottom object.
FYI, this is the first time I've used Dropbox, so shout at me if it doesn't work.
A newly created object will always be topmost on its layer. So when you create the ShouldBeOnBottom sprite, it'll automatically be in front of everything else on the layer it's created on. Just add a "Send to back" action right after you create the object.
Develop games in your browser. Powerful, performant & highly capable.
Okay, that makes sense. Thanks.