how can I pass a value from a.lua to b.lua?
let us say that in my a.lua i have this code of variable.
local value = "Hello WOrld!"
director:changeScene ("b")
my problem is that how can i pass value from a.lua to b.lua?
thanks in advance….
Assign the value to the global table (
_G), like this:In another script, you can then do this: