Jump to content

Disabled input behind overlay


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


  • Recently Browsing   0 members

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