Anchoring an actor to screen makes it appear in front of all the other actors?

blackfeathers

  • Posts: 3
hi. for my game, i need a background actor that doesn't move with the camera. it should appear behind all the other actors. however, when i add the "when creating - anchor to screen" event and then run the game, it appears in front of all the other actors. i have tried adding a "go to back layer" after the anchor block, but it still appears the same way.  picture shows the way the scene should look and the way it looks when anchor to screen block isn't added.

Luyren

  • *
  • Posts: 2687
That is intended, anchored actors go to the HUD layer, above everything. For a background that moves with the camera, creat it as an actual Background (a resource type), make it non repeating, or if you want it to repeat, give it a parallax scrollfactor of 1.
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.
Twitter