what is the command for double tap? i want something to happen on a double tap, but not on a single tap. [import]uid: 147322 topic_id: 26820 reply_id: 326820[/import]
That would be [lua]event.numTaps[/lua].
Here’s a quick example you can run;
[lua]local button = display.newCircle( 160, 240, 30 )
local function doubleTap (event)
if event.numTaps == 2 then
print “Button was double tapped!”
end
end
button:addEventListener(“tap”, doubleTap)[/lua]
Peach
[import]uid: 52491 topic_id: 26820 reply_id: 108853[/import]
thank you! that was a big help. [import]uid: 147322 topic_id: 26820 reply_id: 109066[/import]