Jump to content

How to detect touch hold on sprite on mobile?


korgoth
 Share

Recommended Posts

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

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...