Ok, I use this director thing to change levels (scenes).
I have different problems with it.
- I made a level and I copied it, so I have two levels. The first time everything works fine. Then I go to level2 (which is actually the same level in a separate lua file).
From the second level I come to the first level again and so on in an endless loop.
The more I change the levels, the more the level acts crazy.
My moving objects suddenly jump around on the y axis and move between different y coordinates, than I gave them.
- If I use a loading screen between levels, then if I go to level2 after the loading screen my background doesn’t load. To be honest nothing loads, except the animations, which are not inserted into the localGroup. On the screen I see only the loading screen and 4 animated images.
So I think, I should have unloaded everything by changing the scene, but appearantly it doesn’t happen.
Can somebody explain, how Corona/LUA handle this? How do I have to organize my levels?
I can’t find anything on it in a comprehensive way.
I don’t really understand these groups and tables and so…
Please can somebody explain it? [import]uid: 6587 topic_id: 5752 reply_id: 305752[/import]