Iordache Mihai Posted March 5, 2022 Share Posted March 5, 2022 Hello, I'm trying to create a black overlay on top of gamescene BUT for certain elements/containers/sprites from within the stage I would like to be on top of that overlay. First I've tried to apply a filter like ColorOverlayFilter to some children containers but I wasn't able to skip what I wanted from the graph. this.stage.children.forEach((child: any) => { if (['tableLayer'].indexOf(child.name) === -1) { child.filters = [new ColorOverlayFilter(0x0C2C17, 0.7)]; } }); Second I've added a mask that works nicer but it applies to the entire scene. To resume this, what I need to know it how i can move some children containers above that black overlay (popup like) I've created. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.