Rootar Posted August 14, 2017 Share Posted August 14, 2017 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 More sharing options...
Recommended Posts