Is it possible to dynamically load a lua file? e.g. loading the next level?
Background:
* Have a storyboard based little game
* Was going to have a different storyboard file for each level, but then the dynamics/code is exactly the same, so I thought I would load the level background/objects from a separate file dynamically. E.g. I could have level_1.lua, level_2.lua, etc. And within these files they could create (in lua) their whole set of background / interaction objects etc, and pass back to the main game storyboard file as one display object
* Worked fine with a “require level_1”, but now trying to make this dynamic I may be hitting an issue
If it’s not possible any suggestions?
[import]uid: 140210 topic_id: 34498 reply_id: 334498[/import]