we had all of our levels in seperate lua files which worked great in the transitions, but started causing memory problems. So now we want to put all the levels of each world into one file but the transitions don’t seem to work the same. How can I transfer from level to level in one file, right now each level is a funciton. Is this possible? [import]uid: 94237 topic_id: 18855 reply_id: 318855[/import]
You cannot “transition” to another level using Director (is that what you’re using?) if it’s all in one file.
You’d write your own function for it - removing the old objects, loading the new, moving or fading them, etc.
Peach
[import]uid: 52491 topic_id: 18855 reply_id: 72612[/import]
yeah I am using director, thanks that helps a lot, would this function go into director itself or the main? [import]uid: 94237 topic_id: 18855 reply_id: 72639[/import]
Ah, OK, for director related questions you will need to post here instead; http://developer.anscamobile.com/forums/director-class
(It’s third party.)
Peach
[import]uid: 52491 topic_id: 18855 reply_id: 72654[/import]