Hi guys,
I have a storyboard scene called “game_scene”. In the createScene() event handler I create some display objects and do gui stuff as usual.
My question is: Is it safe to access those display objects (and modify them) created in createScene() event handler from doSomething() function? Or do I have to wait at least some frames until the new scene gets initialized? The code below is working smooth both on simulator and on my test device, but I kinda have some concerns that it might not be working on some devices out there (because of storyboard transition?)
Thank you very much.
-- game\_scene not created yet, lets create and transition to it with defaults storyboard.gotoScene("game\_scene") -- game\_scene created, and initialized completely (i guess) local gameScene = storyboard.getScene("game\_scene") -- modify objects created in gameScene:createScene() event handler gameScene:doSomething()