I’ve read all the docs and various tutorials but I can’t seem to figure this out. Is there a way to just close a scene and remove everything that the was created inside the scene? No matter what I call nothing ever seems to happen. If I load an image and then exit the scene and purge it or remove it, then I go back into the scene it’s still there. Am I missing something?
Figured it out I wasn’t added the images to the group view and therefor they weren’t being removed.
So do you need to add everything to the group view including images, buttons, etc.? I’m still trying to figure out where everything is created and used in the storyboard.
From the demo in the sample app do I add the object in the createScene and define the usage of it in the enterScene? I’m trying to figure out where to start the “local image1” and then use it such as setting the x/y and adding physics to it.
My other question is I am adding the image1 to “local game = display.newGroup()” and then I move the position of the game for scrolling. Do I also need to add everything to the group view? So I add them to both?
Hopefully you or someone can help me with this.
Thanks!
Figured it out I wasn’t added the images to the group view and therefor they weren’t being removed.
So do you need to add everything to the group view including images, buttons, etc.? I’m still trying to figure out where everything is created and used in the storyboard.
From the demo in the sample app do I add the object in the createScene and define the usage of it in the enterScene? I’m trying to figure out where to start the “local image1” and then use it such as setting the x/y and adding physics to it.
My other question is I am adding the image1 to “local game = display.newGroup()” and then I move the position of the game for scrolling. Do I also need to add everything to the group view? So I add them to both?
Hopefully you or someone can help me with this.
Thanks!