I’m trying to build some code which loads different levels, for which I’ve utilized the following code:
[lua]function buildLevel( levelName_str )
require( levelName_str ) – works on simulator, doesn’t work on device
–require( “level01” ) – works on simulator, works on device
end
buildLevel( “Level01” )[/lua]
It works great on the simulator, but fails on the device (iPhone 3G)…
Any ideas?
How can I import a module, dynamically at runtime?
Thanks,
EZ [import]uid: 9536 topic_id: 6563 reply_id: 306563[/import]