Rootar

Members
  • Content count

    4
  • Joined

  • Last visited

  1. Sprite.alpha missing from version 2.6.0

    You must download CE version 2.6.2 don't have sprite.alpha in public variables
  2. PriorityID

    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
  3. Sprite.alpha missing from version 2.6.0

    thanks for advice with tween, but this is weird solution. Why they delete this properties?
  4. how to add multiple keys

    Hello, I'm just starting my adventure with phaser. I have a question. Is it possible to add a few buttons to the variable so that you can later use the function addOnce? var upKey = game.input.keyboard.addKey(Phaser.Keyboard.UP); upKey.onDown.addOnce(this.start, this); var wKey = game.input.keyboard.addKey(Phaser.Keyboard.W); wKey.onDown.addOnce(this.start, this); As you can see, this code does not look too nice. Is it possible to get rid of the redundancy?