I have no idea what’s causing this. I remember from the youtube tutorial video that you mentioned something about cleaning timers, etc, but when I went into the director.lua to uncomment the cleaner function it was already uncommented, so I guess it’s already cleaning. I’ve got about 10 timers and some more functions and listeners in my game, maybe they’re causing it?
Code looks like this:
-- Die
function dieFunction()
if(score \> bestScore) then
bestScore = score
saveValue("scorefile.data", bestScore)
end
director:changeScene("pregame")
end
if(event.phase == "began" and event.other.class == "7") then
dieFunction()
end
This causes a crash… [import]uid: 14018 topic_id: 5630 reply_id: 305630[/import]