Archer3CL Posted July 16, 2014 Share Posted July 16, 2014 I'm kind of new with Phaser and I was wondering about this Is it possible to detect where on the world the active pointer was swipe OR in a specific area? I was getting the position of the pointer and check if it was inside of a Rectangle AND if the difference of the start y position of the pointer and the last y position is greater than 0 but... didnt work. From what I have read Phaser has at least 2 pointers enabled. Is it possible to have only one pointer enabled?Help appreciated. Link to comment Share on other sites More sharing options...
rich Posted July 16, 2014 Share Posted July 16, 2014 Not sure I get your first question, but the second one is easy:this.input.maxPointers = 1; Link to comment Share on other sites More sharing options...
Archer3CL Posted July 16, 2014 Author Share Posted July 16, 2014 Thanks for the answer.About the first question, particularly on the game i'm making, i want to now if the user slide or swipe over a specific sprite. Never mind... i found the solution that i need in this topichttp://www.html5gamedevs.com/topic/5449-directional-swipe/ And again thanks for the quick answer. Link to comment Share on other sites More sharing options...
Recommended Posts