Ok I love the Director Class. I am trying to change scenes and it crashes. I have downloaded the newest Dec. 13 update. I tried to follow the youtube video about using the clean function with director, but the code in Director has changed. My issue is, how do I use the clean function when I don’t see it in the code? Do I need to remove eventListeners, stop timers?
My error is:
Copyright (C) 2009-2010 A n s c a , I n c .
Version: 2.0.0
Build: 2010.243
The file sandbox for this project is located at the following folder:
(/Users/derwydd/Library/Application Support/Corona Simulator/game4-60DFA3011116F87540F7FEE1BC2D16E2)
/Applications/Corona.243/Corona Terminal: line 9: 75123 Bus error "$path/Corona Simulator.app/Contents/MacOS/Corona Simulator" $\*
logout
[Process completed]
My code:
[code]
module(…, package.seeall)
– Activate physics engine
local physics = require(“physics”)
local ui = require( “ui” )
local introparts = require( “intro-parts” )
local localGroup
physics.start()
–line 9
–display.setStatusBar( display.HiddenStatusBar )
– Main function - MUST return a display.newGroup()
function new()
local localGroup = display.newGroup()
– some code is missing
playHandler = function( event )
–timer.performWithDelay(1000, removeSetup)
Runtime:removeEventListener(“enterFrame”, rotater)
media.stopSound()
director:changeScene(“playerSelection”)
end
[/code] [import]uid: 7197 topic_id: 4985 reply_id: 304985[/import]