Does anyone know if there is a way to access variables outside of a module? Basically, i have a storyboard scene with local variables and i’d like to be able to access those variables within a character module i made. I don’t want to have to pass the local variables to each character object. Any ideas? Here is an example of what i am trying to do.
Excerpt from sample_scene.lua
local storyboard = require( "storyboard" )
local scene = storyboard.newScene()
-- Forward declarations and other locals
local score = 0
local Character = require( "character" )
Excerpt from character.lua
[code]
module(…, package.seeall)
function new( params )
print( score )
end
[/code] [import]uid: 26491 topic_id: 30602 reply_id: 330602[/import]