Hi,
i am creating a physics game and just need a bit of help with some coding with Corona..
i have this code for looping an animation:
local function woodenblockAnimation()
local animUp = function()
transition.to(woodenblock, { time=2000, x=270, onComplete=woodenblockAnimation})
end
transition.to(woodenblock, { time=2000, x=50, onComplete=animUp})
end
woodenblockAnimation()
and i just want to be able to add a touch function to anywhere on the screen and the touch will stop this loop from running.. can anyone help please?
thanks!!

Allen