Do global variables work between worlds?
#6
(08-12-2011, 01:22 AM)Jacob_ Wrote:
(08-12-2011, 12:20 AM)Qwertygiy Wrote: As it is, I THINK that each World is its own seperate entity, meaning global variables are not shared. I could be wrong though.


My solution would be to have a variable object and then access it from other Worlds using getWorld.

_G variables are shared.

Does that mean if I define a global variable in the main world I can use it in a second world?
[Image: OAgDZ.png]
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)