Jump to content

[WEB] Trying to create an black overlay on top of gamescene

Iordache Mihai

Recommended Posts



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.

Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...