Jump to content

Search the Community

Showing results for tags 'local position multi touch'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 1 result

  1. Hello everyone. I am trying to use the touch events in PIXI and I do not know how to get the local position of each finger, I have this: stage = new PIXI.Container (); // general containerspriteParent = new PIXI.sprite (texture); // for transformsspriteChild = new PIXI.sprite (texture); // for transformsspriteParent.addChild (spriteChild);stage.addChild (spriteParent);stage.touchstart = function (event) { // for two fingers var point = event.data.getLocalPosition (spriteParent); // this give me the local position for one finger relative to spriteParent coordinates var finger_1_x = event.data.originalEvent.touches[0].pageX; // these give me the position for two fingers var finger_1_y = event.data.originalEvent.touches[0].pageY; // but how I get the local position for those? var finger_2_x = event.data.originalEvent.touches[1].pageX; var finger_2_y = event.data.originalEvent.touches[1].pageY; };Thanks
×
×
  • Create New...