How do i make something happen or not happen on like a second, third, fourth, etc. tap like a double jump or a button that displays text when its tapped the third time, etc. Thank you!! [import]uid: 38977 topic_id: 19814 reply_id: 319814[/import]
You’d have a variable keep track. Rough example;
[lua]display.setStatusBar(display.HiddenStatusBar)
local pressed = 0
local button = display.newCircle( 100, 100, 50 )
local function example ()
if pressed < 3 then
print “Do stuff here”
pressed = pressed + 1
end
end
button:addEventListener(“tap”, example)[/lua]
That would only fire the first three times.
Peach
[import]uid: 52491 topic_id: 19814 reply_id: 76876[/import]
thank you sooo much, worked out great! [import]uid: 38977 topic_id: 19814 reply_id: 76897[/import]
Not a problem - glad I could help
[import]uid: 52491 topic_id: 19814 reply_id: 76921[/import]