Help: addChild and display list

2 posts

Flag Post

Hello,

I’m trying to create a game over “pop-up” and it’s not on the foreground!

I’m trying something like this:

Frames 1 to 30 – intro (title fading in)

Frame 31 – stop() and Play menu that gotoAndStop(32)

Frame 32 – a tic-tac-toe board, when you click it adds a new X or O to the stage. When the game ends, play()

Frames 33 to 63 – game over “pop-up” fading in.

The pop-up is below the X and O! How do I change that?

Thanks,

Ricardo.
 
Flag Post

See the layer panel? You can change the order of the layers by dragging them up and down the list. The order they’re in changes what’s on top of what.

Maybe that’s too simple a solution but I had the same kind of problem as you and that’s how I finally fixed it.