...layer Spawned Objects?

Discussion in 'How Can I...?' started by AaroArts, Dec 18, 2016.

  1. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    I have a shooter, that spawns a ball, but when it goes past another image (say a brick), it's behind it!
    It's still behind the brick, even though the ball is above it in the layer stack to the left of the screen.

    How can I get this to work?
    Thanks :D
     
  2. khalid

    khalid Avid Boxer

    Joined:
    Feb 17, 2016
    Messages:
    343
    Likes Received:
    67
    odd!!
    can you upload an image
     
  3. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    Basically, the ball goes behind the top of the trash bin (the back of it you can see at the top).
    It's actually transparent which is why you can "sort of" see it go inside, but if it wasn't, it would go behind the image layer...
    Hopefully that makes sense.
     
    Last edited: Dec 19, 2016
  4. khalid

    khalid Avid Boxer

    Joined:
    Feb 17, 2016
    Messages:
    343
    Likes Received:
    67
    aha
    you need to break the glass into two halves and the ball between the two layers of the cup
     
  5. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    It is broken in half.
    The trash can itself is in front of the ball (layer "bin"), and the back part of the trash can (the top ellipse) (layer "Bin_Back"), is a separate layer behind the ball.

    It's as if a spawned object automatically layers itself above the main background but behind everything else by default.

    [​IMG]
     
  6. khalid

    khalid Avid Boxer

    Joined:
    Feb 17, 2016
    Messages:
    343
    Likes Received:
    67
    Remember all the objects are taking their parent z position it is not enough to move the object but the parent as well
    I think
    please check it
     
  7. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    Isn't the parent object the object that has the spawner attached? which spawns the balls upon a tap?
    In this case, the layer "ball", is the parent object and is in-between the two layers already.
    At least that's how I've always used Z Layers...
    Maybe it's something to do with grouping.
     
  8. khalid

    khalid Avid Boxer

    Joined:
    Feb 17, 2016
    Messages:
    343
    Likes Received:
    67
    I mean the bin link parent
     
    Last edited: Dec 20, 2016

Share This Page