Good day, to all!
I have read that single taps, double taps, and flicking in a given direction are quite easily implemented.
The tap and double tap are very straight forward in my head, as Corona seems to have made this easy on us.
The flick, obviously has a bit more math on our part.
And pressing and HOLDING a button for, say 2 seconds can easily be coded as well.
I would like to play around with a rectangle on the screen, representing a card, for a card game.
-
If that card is flicked UP, I would like a certain function to fire.
-
If that card is flicked to the LEFT, I would like a certain function to fire.
-
If that card is flicked to the RIGHT, I would like a certain function to fire.
-
If that card is flicked to the DOWN, I would like a certain function to fire.
-
If that card is pressed and held for two seconds, I would like a certain function to fire.
I can manage the single tap and double taps. As a double tap is merely using TIME to determine the taps in succession; and I assume the PRESS AND HOLD is similar.
Is it possible for someone to show me the code for the above 5 conditions?
If this is asking too much I do apologize, for not knowing the involvement.
Sooner or later, I will know what I have just asked of this community!
PEACE
Thanks in advance
Chris:)