Quantcast
Channel: Adobe Community : All Content - Adobe Animate CC - General
Viewing all articles
Browse latest Browse all 13519

How to get the coordinates of a Swipe Gesture?

$
0
0

Hi guys!I'm building a game similar to Fruit Ninja and i recently encountered the following problem:how do i access the touch points of a swipe event cause as you now in order to tear a fruit apart i need to know if the swipe points are the same as a fruit's location.

So basically it's something like:

If (Swipe.x==fruit.x){

Destroyfruit();

}

So is there any way to figure out the coordinates of a Swipe?

Thanks


Viewing all articles
Browse latest Browse all 13519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>