Swipe / Drag
by Zeinad · in iTorque 2D · 08/11/2009 (1:51 pm) · 4 replies
Has anyone tried to incorporate a swipe or drag like feature to their game? I am trying to do something where you touch an object and then drag it around the screen, or possibly when you touch down an object gets created and follows your touch, and is destroyed when you let up.
Is there a simple way to do swipe/drag in iTGB?
Is there a simple way to do swipe/drag in iTGB?
About the author
#2
Like Craig mentioned, I am using onMouseDown(), onMouseDragged(), and onMouseUp().
08/11/2009 (6:56 pm)
Yes, I'm doing that in Buggle. Take a look at this video to see bugs being dragged.Like Craig mentioned, I am using onMouseDown(), onMouseDragged(), and onMouseUp().
#3
08/12/2009 (9:46 am)
Hrm, I have tried using the onMouseDown(), onMouseDragged(), and onMouseUp(), perhaps my problem lies somewhere else. I do have the multi-touch resource implemented, could that be affecting this in some way? The events all work as expected when running iTGB on the mac but when pushed to the phone nothing with drag is working at all.
#4
08/12/2009 (1:04 pm)
I haven't looked a the multi-touch resource, so I supposed maybe there is something in there causing a problem. The onMouseDown(), Dragged, Up worked fine on my PC, my Mac, and iPhone without any problems.
Associate Craig Fortune