So i am wanting to know if its possible to move variables in between modules without initializing them? Basically i have my game mechanics, and i know how to pass display objects from a seperate lua file into my mechanics code, but I’m wondering if there is a way to almost literally copy the level code from the seperate lua file and put it into my mechanics code BEFORE initializing that code.
Right now i can say…
[lua]–Inside my mechanics file
level = require(“level1”)[/lua]
So now i can access all the objects inside level1 by calling level. but the instant i require “level1” the code inside “level1” is executed, im wondering if i can somehow pull the code information from “level1” into my mechanics and execute it once its in my mechanic file…
Hope that makes sense, any input would be great! [import]uid: 19620 topic_id: 21360 reply_id: 321360[/import]