The problem with that is you can't share variables from one import to another.
I think you can do it with pointers though
I think it works like this. could be wrong I am still laerning this stuff and have the same kinds of problems.
Import "Test2.bmx"
Test2Var=Testvar
Global TestVar=121
Test2Function()
Print "TestVar="+TestVar
Test2.bmx
Global Test2Var Ptr
Function Test2Function()
Test2Var=10
End Function
I think you can do it with pointers though
I think it works like this. could be wrong I am still laerning this stuff and have the same kinds of problems.
Import "Test2.bmx"
Test2Var=Testvar
Global TestVar=121
Test2Function()
Print "TestVar="+TestVar
Test2.bmx
Global Test2Var Ptr
Function Test2Function()
Test2Var=10
End Function