hi,
here’s a sample for the function:
local function fly()
local steady = function()
instance1:pause()
timer.performWithDelay(500, fly, 1)
end
instance1:play()
timer.performWithDelay(3000, steady, 1)
end
fly()
…
this function is working in a game scene; when i turn back to the menu scene, this function is still working and doing error at the play() and pause() methods … as the instance1 sprite isn’t there
So i want to stop this function before i go out from the game scene
is there any property like removeSelf() for the objects … or something like that for the functions !? [import]uid: 96659 topic_id: 18640 reply_id: 318640[/import]