PlayMaker Help & Tips > PlayMaker Help
[SOLVED]iOS drag object with touch event
will_brett:
Is there any info on how to drag an object around the screen on an iOS device?
thanks
jeanfabre:
hi,
Here's a working example using a mouse, you simply need to swap the mouse input with a touch input. that system only asks for a screen position really.
http://hutonggames.com/playmakerforum/index.php?topic=2253.msg9972#msg9972
bye,
Jean
will_brett:
Thank you, I will try this as soon as i've fixed the game
will_brett:
Had a look at the FSM (The first one you posted) and the example certainly works however my game is 2d.
How do I adjust it so that the object can only be moved in the X Y axis? Also when I touch my game object it just disappears :S
Thanks again Will
(I used the first link from this page http://hutonggames.com/playmakerforum/index.php?topic=2253.msg9972#msg9972)
will_brett:
I still have the issue where on touch of the object it jumps a random number somewhere in the scene in all axis'.
1. I want it constrained to 0 in the Z axis.
2. I dont want it to jump in the either x or y axis... just stay were the object was created until touched and dragged
I've attached screen grabs
Thanks
W
Navigation
[0] Message Index
[#] Next page
Go to full version