Hi, I have a little problem with tapDelay and tap detection.
I wrote the code below. I think it should let me 6 seconds to tap six times and then print the message with the “Awesome” message.
[lua]system.setTapDelay (6);
background=display.newImage(“whitebg.png”);
local function countTaps (event)
if event.numTaps == 6 then
print (“awesome”);
elseif event.numTaps == 1 then
print (“not so cool”);
end
print(“END OF FUNCTION \n”);
end
background:addEventListener (“tap”, countTaps);[/lua]
However I am using my superskills of FPS player to click 4 times per second I only get this:
[text]
not so cool
END OF FUNCTION
END OF FUNCTION
not so cool
END OF FUNCTION
END OF FUNCTION
not so cool
END OF FUNCTION
END OF FUNCTION
[/text]
What am I doing wrong?
And how can I search topics in the forum since you change the design?
[import]uid: 140715 topic_id: 27653 reply_id: 327653[/import]