Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: MrMitch on February 02, 2014, 09:12:33 PM
-
So i've been trying to make a 2D object track my finger but it doesn't seem possible with the current actions due to how 2D coords seem to work.
Does anyone know a good workaround or am i missing something?
-
Hi,
you need to use this action:
http://hutonggames.com/playmakerforum/index.php?topic=272.msg1087#msg1087
then you can inject your touch position. you define your fictive plane in 3d where you want that touch position to be express and done.
bye,
Jean
-
Thanks but i've no idea how to use this action but i'll keep trying and my game is being made all in 2D so will this even work?
-
Hi,
Yes. Unity went for a very weird path with Unity 2d unfortunatly... It's still very much all 3d after all. so this action still work, simpls define the fictive plane to match the camera orientation.
bye,
Jean
-
Hey sorry to resurrect a mostly dead thread but i've finally come back to dealing with this.
So this is my setup, it detects touches and does move my object but only to one location and it won't move again.
I'm using Touch Event.
What am i doing wrong?
-
Anyone have any suggestions?
-
Hi,
Uncheck "normalize" it recompute the screen pos to be within 0 and 1, 1 being the full width, so your object ends up beiny position in a 1 unit square position in space, not what you want :)
bye,
Jean
-
It works!
Thanks Jean :)