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
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.
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.
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
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.