Is there any drag(swipe, flick) sample we can follow?

5 replies [Last post]
fudesign's picture
fudesign
User offline. Last seen 6 days 14 hours ago. Offline
Joined: 19 Feb 2010

I am thinking to add drag(swipe, flick) function in Corona.
Is there any sample? Thank you very much.

Replies

werdinteractive's picture
werdinteractive
User offline. Last seen 5 days 18 hours ago. Offline
Joined: 11 Feb 2010

There is some sample code for the drag feature called "follow me" in the getting started section of the website, but I have not seen the code for flicking and swiping.

Edit: I didn't notice the parentheses around flicking and swiping and thought you where looking for any of the above. That is why I pointed out where to find the drag code. Wish I could be more help.

fudesign's picture
fudesign
User offline. Last seen 6 days 14 hours ago. Offline
Joined: 19 Feb 2010

Thank you. Yes, when I checked the APIReference.pdf, I saw "drag TODO: The name is misleading --- change to "flick" or something similar." I am not sure what it means. I guess we can somehow using dragging as swiping?

jaynee Howe
User offline. Last seen 1 year 24 weeks ago. Offline
Joined: 28 Apr 2010

Is there a sample of this code somewhere... simple

I'd like to do this:
when touch an image
drag
to/on top of
hotspot/hotbox

disappear

replace image

Hmm, how's that for an artist attempt at syntax!
Thank you much.

Thank you much.

Eric
User offline. Last seen 1 year 9 weeks ago. Offline
Joined: 23 Jun 2009

Dragging an image is in the "FollowMe" sample.

jaynee Howe
User offline. Last seen 1 year 24 weeks ago. Offline
Joined: 28 Apr 2010

Thank you!

Viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.