Heppell08 Posted March 20, 2014 Share Posted March 20, 2014 I'm looking to add a mechanic to my game for touchscreen where if the pointer is down and moves so much Y axis that it fires a function. Then i want to do the same but in reverse for a different function. Basically finger swipe UP to switch gravity UP and swipe DOWN to make gravity "normal" again. Any ideas on how to add this type of feature? I'm using phaser 1.1.5 if that makes any difference. Thanks Link to comment Share on other sites More sharing options...
Heppell08 Posted March 21, 2014 Author Share Posted March 21, 2014 EDIT: Found a fix to this but modded the code slightly to suit my needs. First off the original post i found was this one: http://www.html5gamedevs.com/topic/3862-swipe-to-jump/ Link to comment Share on other sites More sharing options...
Recommended Posts