I’m a bit busy now, but will try and work up a solution for you as soon as I can, but that may not be until tomorrow.
In the meantime and off the top of my head, take a look at timer.perform with delay.
http://developer.anscamobile.com/reference/index/timerperformwithdelay
Off the top of my head: In the event.phase == “began” you want to set a flag to true, (e.g. hasBeenPressed = true)
Then using a timer.performWithDelay call a function after 300 milliseconds which checks if hasBeenPressed = true.
[code]
function buttonPressed()
if hasBeenPressed == “true” then
–your logic here
end
end
Hope that makes sense?
Spider [import]uid: 67933 topic_id: 21462 reply_id: 85295[/import]