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

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.

Guest
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.

Loading...
 Share

  • Recently Browsing   0 members

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