This seems like a job for the timer behaviour..
I would use it in combination with a variable (instance or global)
Then it should be something like this:
on layout start - start timer for variable1 seconds
on touched object -
stop timer
add something to variable1
start timer for variable1 seconds
on timer
goto layout