I have a method that is called infinity times via the code below.
local myclosure = function() return hadoken( enemy, past) end
timer.performWithDelay(1000, myclosure, 0)
I need to make this timer able to be cancelled, even if it has already started. The example given in the for timer.cancel only seems to work if you use a table listener with no parameters. How can I adapt it to my method?
Thanks in advance. [import]uid: 89724 topic_id: 16196 reply_id: 316196[/import]
[import]uid: 3826 topic_id: 16196 reply_id: 60289[/import]