I'm stumped on this right now; Trying to reset my level but my update function continues and errors out some Bump stuff. So I figure I need to remove the event listener on reset, but it doesn't work. Here's some code:
self:addEventListener(Event.ENTER_FRAME, self.onEnterFrame, self)
s:removeEventListener(Event.ENTER_FRAME, s.onEnterFrame, s)
In my NPC class's update loop (triggered from GameScene:onEnterFrame on a GAME_STARTED bool):
if LIVES > 1 then
I'm not great around the whole event listening concept to be honest.
But basically the new level loads an then swiftly crashes when GAME_STARTED is set to true and it will try to finish the previous round's update loop...