korgoth Posted November 25, 2014 Share Posted November 25, 2014 This code is working fine on desktop (returns true when I hold the mouse button on the sprite ) but not on mobile or in Google Chrome Canary emulator ( always returns false ).this.flyButton = this.add.sprite(100,100,'button');this.flyButton.inputEnabled = true;update: function() { console.log(this.flyButton.input.pointerDown());}What am I doing wrong? ( Phaser 2.1.3 ) Link to comment Share on other sites More sharing options...
Recommended Posts