PlayMaker Help & Tips > Android Help
on double touch event
(1/1)
Sjones:
I am wondering if someone can do an on double touch event, that if 2 fingers touch at the same time it will store their ID's and send on an fsm event.
I will be giving this a shot later but it might be simple and someone could do it in a couple of min.
Sjones:
think I have done this, not entirly sure but on every attempt to break this or get a result other than expected has failed which is good, I changed the normal touch event from if (Input.touchCount > 0) to if (Input.touchCount > 1), my fear was that not understanding the script fully that the fingerID might be incorrect or not work, this again doesnt seem to be the case, I put this first and then the standard >0 after so it looks for 2 fingers first and then just the 1.
I still dont know how to set the unique fingerID to each, but for now its working and this doesn't seem to be an issue.
jeanfabre:
Hi,
I have ported input.touches to playmaker, and you can have control over this and received events on double touch with two fingers and other nice combos.
https://hutonggames.fogbugz.com/default.asp?W961
bye,
Jean
Navigation
[0] Message Index
Go to full version