I get some errors like this:
level.lua ERROR: ?:0: attempt to index field ‘halloweenfx’ (a nil value) on device: iPhone
And I have code like this:
if gfx.halloweenfx and gfx.halloweenfx.timer then timer.cancel(gfx.halloweenfx.timer) gfx.halloweenfx.timer=nil display.remove(gfx.halloweenfx) gfx.halloweenfx=nil end
Now I wonder how I still can get the error? What am I missing here?