Jump to content

Search the Community

Showing results for tags 'activePointer'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
  • Frameworks
    • Phaser 3
    • Phaser 2
    • Pixi.js
    • Babylon.js
    • Panda 2
    • melonJS
  • General
    • General Talk
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Website URL





Found 3 results

  1. Hi everyone. I'm playing around with TypeScript and Phaser for the first time. I started off with plain Javascript/Phaser in Sublime and got a little game going where I could move a sprite around the screen and click to shoot. It worked relatively easily which was nice. Then I decided to switch to TypeScript and Visual Studio because intellisense and the class/inheritance syntax looked like it would make things easier. I still have hope, but I've run into some problems. The first issue that came up was setting up WASD controls with AddKey. I tried to use the recommended var movementLeftKey:
  2. 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
  3. 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.
  • Create New...