Ive been using storyboard as my method for scene management and am having issues inserting my display objects (non background and UI objects) which are created from spawn functions and game loops etc.
At the moment I use display.newGroups to store the new objects but would like to somehow include everything inside the sceneGroup so that Corona SDK can handle clearing the scenes rather. I have also noticed that if objects are not inside the sceneGroup, the storyboard.gotoScene transitions don’t work on anything other than the sceneGroup.
So yeah, Is there a way I could insert objects from spawn functions etc… into the screenGroup self.view inside the createScene ?
(I know storyboard doesn’t actually use sceneGroups, but I’m hoping you know what I mean)
Thanks
operator, those functions get “self” passed to them. In this context self = scene. So if you’re functions are part of the scene object, you can use self.view or scene.view interchangeably. If you are using just normal local functions: