Swipe and activate all objects

Random discussions.

Swipe and activate all objects

Postby yo_milo » Mon Mar 28, 2016 9:11 pm

I was looking for a way to swipe through a lot of objects and activate them as my finger is passing on them. I remember in the old API there was a way to know where was your touch located at...

I tried using Press (and a friendly gesture the other objects) to no avail because press only detects on the first press... I though flick would do the trick, but nope. I was just wondering if anyone has done something like that before, and if you could lead me into the right class to look into... Thanks.
Posts: 3
Joined: Mon Nov 23, 2015 8:05 pm

Re: Swipe and activate all objects

Postby valyard » Wed Apr 13, 2016 3:47 pm

This is indeed tricky in current implementation to do since touches are owned by gestures.
You can add a gesture to an object or to fullscreen and check manually every frame what object is currently under the gesture's central touch point using this method: http://touchscript.github.io/docs/html/ ... sult_3.htm
But I probably need to come up with a better implementation...
Site Admin
Posts: 439
Joined: Mon Sep 08, 2014 11:57 pm

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest