Search the Community
Showing results for tags 'activePointer'.
I don't know why this is happening but the getGold() function inside the this.input.activePointer.isDown is not working on mobile but working fine on browsers. I compiled the code using cordova/phonegap to put it on mobile. What should happen: player tap and hold on the screen > animation should play > everytime it hits the last frame it should get gold What's happening (browser): player taps and hold on screen > animation plays > everytime it hits the last frame it gets gold What's happening (mobile): player taps and hold on screen > animation plays Code: function upda
Whatever I try, game.input.activePointer.movementX and game.input.activePointer.movementY always returns 0. Am I wrong to assume that they should return the distance the pointer has moved since the last frame? rawMovementX & Y does the same thing by the way. Any solution, have I forgot to enable something? Docs are not to much help on this one.