Answers for "phaser3 button not working"

0

phaser3 button not working

create () {
    this.startBtn = this.add.sprite(100, 100, 'startBtn').setInteractive();

    this.startBtn.on('pointerover', function (event) { /* Do something when the mouse enters */ });
    this.startBtn.on('pointerout', function (event) { /* Do something when the mouse exits. */ });
    this.startBtn.on('pointerdown', startGame); // Start game on click.
}
Posted by: Guest on July-04-2020

Code answers related to "phaser3 button not working"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language