Hi
I began to design my game without composer first, structure was like this:
Main.lua: The whole game (touch, collision, enter frame listeners)
level.lua: All the levels (bitmaps etc.) in functions called by main.lua (like shown here)
Now I moved to composer:
Main.lua: goto startmenu.lua
startmenu.lua: choose exit, resume, play (goto play scene), etc.
play.lua: now the whole game (previous Main.lua)
level.lua: All the levels, called by play.lua
Now the problem is, that when going back from play scene to startmenu scene, the bitmaps of level.lua stay on top of startmenu, because they are not inserted into the scene’s view group of play scene. But I can’t insert them, because they are in a other file than play scene (error message).
How can this be constructed?
Thanks for your help!
Regards
Olivier