Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

Disabled input behind overlay


mamwalter
 Share

Recommended Posts

ok i find it, i generate a texture from the graphic and activate input on it.

var graphicOverlay = new Phaser.Graphics(this.game, 0 , 0);graphicOverlay.beginFill(0x000000, 0.7);graphicOverlay.drawRect(0,0, screenWidth, screenHeight);graphicOverlay.endFill();this.overlay = this.game.add.image(-10,-10,graphicOverlay.generateTexture());this.overlay.inputEnabled = true;
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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