Jump to content

PriorityID


Rootar
 Share

Recommended Posts

Hello i have a problem with a gui. I have mute button on the screen, and when i click it game turns on. I try use priorityID, but this don't work. I don't know what im doing wrong. 

 


//when i click screen game will turn on
var touch = game.input.onDown.addOnce(this.start, this);
touch.minPriorityID = 1;


// add mute Button. When i click it the music is mute and the game turns on. ;/
this.muteButton = game.add.button(20, 20, 'mute', this.toggleSound, this);
this.muteButton.input.useHandCursor = true;
this.muteButton.priorityID = 2;

I use this.muteButton.input.priorityID = 2, but that does not help ;/ 

Any ideas, or advices? Thanks for all ;)

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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