Background Layering Issue

ktortiktorti Member Posts: 27
I have a simple game where actors move across the screen, but when I add a background image (as an actor), the moving move behind the image. I've tried rearranging the layers so that the moving objects are on top, but that doesn't work. Am I missing something here?

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598

    Hi @ktorti

    The following refers to the Mac version of GSC: so if you can see your background stretching over the complete play area, and your actor there on top, but you can't during runtime, then the only possibilities are:

    You've added a destroy behaviour to the missing image

    Your missing image has gravity on it and it just falls off the screen

    You've added a behaviour that automatically moves the actor very fast off the screen

    You've a change attribute set Alpha to zero behaviour in the actor

    Possibly a few more I can't think of...

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • ktortiktorti Member Posts: 27
    @gyroscope

    I can see the image during game play and I can even move it to the side a little to see that the actors that move across the screen are actually spawning, but they are spawning behind the image. I've tried to layer it so that the spawned moving actors are layered on top of the background image but they are still behind.
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited February 2014

    Ah, right, I see what you mean now; OK, simple solution:

    In your Spawn behaviour(s), There is a drop down menu next to "Layer Order". Select "Front of layer" and you should be fine (Or front of actor, whichever you prefer).

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

Sign In or Register to comment.