Hi
I need a little help 
What I 've done:
but this code do not count first time because first prevTime= 0
Maybe I should use tables ?
local prevTime = 0
if event.phase == "began" then
local timePassed = system.getTimer() - prevTime
prevTime = prevTime + timePassed
if timePassed \< 300 then
ballCount = ballCount + 1
print(ballCount)
end
end
[import]uid: 13156 topic_id: 20659 reply_id: 320659[/import]