How to fix button double click?

+) It catches the event clicked twice

	if(Phaser.Input.Keyboard.JustDown(this.X)){
		//do something
	}

or you can set a boolean and set to true if it’s already been clicked, once your process is finished, reset it to false

I’m new phaser 3, can you explain in detail for me?

Thanks tac !

this.input.keyboard.on(‘some_key’, function(event){ will fire as long as your finger is on the key (I found this out the hard way :frowning: ). while on the contrary, Keyboard.JustDown only fires once

Thanks tac !

I still haven’t fixed the problem :frowning:

+) your suggestions are very good