Sliding detector

Hello everybody!

I was just messing around in corona and i came up with a really nice game idea. The main problem is that my idea needs a certain “slide detector” witch will detect slides that happens within a specific area. Lets say a 400x300 rectangle.

For an example.

If the user slides his finger from left to righ = print (“1”)
if the user slides his finger from right to left = print (“2”)
if the user slides his finger from top to bottom = print (“3”)
if the user slides his finger from bottom to top = print (“4”)

It’s pretty hard to explain but i gues you got my point.

Is there any way to do this??

Thanks in advance

-Philip [import]uid: 119384 topic_id: 26252 reply_id: 326252[/import]

Sure! See this: http://developer.anscamobile.com/code/mark

(there are several other examples of how to do this in other places of the code base also [import]uid: 84637 topic_id: 26252 reply_id: 106570[/import]