how can I delay the changeScene function?? i want it to change scene a few seconds after the lives hit 0, is there any way i can do this? thanks!
[code]
local function killCrate (event)
crate:removeSelf()
lives = lives - 1
livesDisplay.text = lives
if lives == 0 then
director:changeScene(“level1success”)
end
end
crate:addEventListener(“touch”, killCrate)
[/code] [import]uid: 10827 topic_id: 9635 reply_id: 309635[/import]