Search the Community

Showing results for tags 'mightyeditorphaser'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Coding and Game Design
  • Frameworks
    • Phaser
    • Pixi.js
    • Babylon.js
    • Panda.js
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered

Found 1 result

  1. Swipe not working

    Hello, i try to create game for mobile devices, and i have a script which work on phaser, but not working on MightyEditor this.swipeMinDistance = 100; this.game.input.onDown.add(function(pointer) { swipeCoordX = pointer.clientX; swipeCoordY = pointer.clientY; }, this); this.game.input.onUp.add(function(pointer) { swipeCoordX2 = pointer.clientX; swipeCoordY2 = pointer.clientY; if(swipeCoordX2 < swipeCoordX - swipeMinDistance){ console.log("left"); }else if(swipeCoordX2 > swipeCoordX + swipeMinDistance){ console.log("right"); }else if(swipeCoordY2 < swipeCoordY - swipeMinDistance){ player.body.velocity.y = -600; }else if(swipeCoordY2 > swipeCoordY + swipeMinDistance){ console.log("down"); } }, this); How to fix, this? Thank you!