Question regarding basic module access...

Hi,

I couldn’t find any information on if it’s possible to access modules (functions in the modules) from other modules, with the following construction somehow?

Storyboardfile “mylevel.lua” includes the following:

require module1 = (“module1”)

require module2 = (“module2”)

now module1 also has the line

require module2 = (“module2”)

now I have a function (for example) “showpopup” in module1 and I have to access this function from module2… how can I do this? I can’t use the require module1 = (“module1”) in module2 because I already am using require module2 in module1? How can I access “showpopup” now from inside module2?

Daniela

describe more about what module1 and module2 do and how/why they need to interact with each other

Sounds like you have a circular dependancy issue - you’ll probably need to go back to the drawing board and work a way around it.

describe more about what module1 and module2 do and how/why they need to interact with each other

Sounds like you have a circular dependancy issue - you’ll probably need to go back to the drawing board and work a way around it.