PlayMaker Help & Tips > Android Help
Cant track finger touches
(1/1)
Spiffy664:
Things that store / track things (finger touch count) don't work. There is nothing in the drop down menu :(
I am trying to follow the tutorial to get an object to "track" your finger e.g. update the location of the object to the position of the finger each frame so I can drag things around. So far in things like store position, store x, store y, none of these have drop downs, they just say "None" and I can click the box next to it and enter a typed value, but this has achieved pretty much nothing...
Thoughts? solutions? is my playmaker installed wrong? I have tried creating a new project, reimporting playmaker, etc, still hasn't solved problems.
jeanfabre:
Hi,
ok, it's quite simple actually. when it says "none" in a field, it means it expects you to select a variable you have created on that fsm or a global variable.
so, in the playmaker inspector, select the "Variables" tab, and create a new variable of the type you want ( likely a vector3). then go back to the "State" view and your action, and then you can pick it by clicking on the "none" field.
If there is nothing listed there, it means you don't have any variable of the expected type available.
bye,
Jean
Spiffy664:
Thanks for the reply jean, you are extremely helpful to the playmaker community.
What should I do to get the variables found in //www.youtube.com/watch?v=08VQPzDLNMk so that when I touch an object it follows the finger?
jeanfabre:
Hi,
I made a working touch and drag system that you can find here:
http://hutonggames.com/playmakerforum/index.php?topic=2253.msg9972#msg9972
In there, you'll find the right combination of touch actions to get the current touch position and drag objects around
bye,
Jean
Navigation
[0] Message Index
Go to full version