Where to put global variables?
Posted: Wed Nov 16, 2011 4:54 pm
I've put some file path variables in my startup.lua so that I can use them anywhere to reference my resources folders, eg:
However, now ESB complains when I open the dungeon file that these variables are empty:
How and where should I declare global variables like this so they work in both DSB and ESB?
Code: Select all
pathimg = "../../../project/_rtc/_files/_img/"
pathsfx = "../../../project/_rtc/_files/_sfx/"
pathmus = "../../../project/_rtc/_files/_mus/"
Code: Select all
attempt to concatenate global 'pathimg' (a nil value)