Layer order ignored

omizu99

  • Posts: 22
Hi,

Sudently, the layer order of my game are no longer concidered.

actor of layer 16 are over actors of layer 18  :o

And of course, no error in log and no z-index used

« Last Edit: June 29, 2020, 08:51:33 am by omizu99 »

Luyren

  • *
  • Posts: 2347
Are you sure you haven't placed an actor in the wrong layer by mistake? It's hard to tell what the issue could be just based on that information.
Also, that's a lot of layers.
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.
Twitter

omizu99

  • Posts: 22
Yes sure. Actually I closed the game and reopen the previous export (no update of those layers between) and everything works fine. Stencyl bug I guess.

LIBERADO

  • *
  • Posts: 2712
@omizu99, if you suspect that it is a bug, you could report it in the Issue Tracker
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

omizu99

  • Posts: 22
@omizu99, if you suspect that it is a bug, you could report it in the Issue Tracker

Actually I just found out that this was not the bug.

So here is what hapen :

I have big actor on layer 1 and 21 small actors on layer 2. They are all anchor to the screen and, I don't know why, only the 21th actor is always set to the back when creating if i add anchor to the big actor.

Apparently, the anchor to screen execution order matter. To solve this, I need to add a "do after... anchor" each actors i neeeded to be above all