[quote=“Naomi,post:12,topic:308826”]
Hey, @nate2, you could try grouping your local variables into tables. That’s how I do it with bazillions of variables I need in my game. So instead of adding each variables as
local myVariable1
,
local myVariable2
, etc., I’d do something like the following for all buttons and images, for example.
-- by doing the following, I end up using 2 (instead of 6 for example): local btn = {} btn.goBack btn.goHome btn.goNext --etc. etc. local img = {} img.background img.image1 img.image2 img.image3 -- etc. etc.
I hope this helps. (BTW, I thought the limit was 200…?) Naomi
[import]uid: 67217 topic_id: 33601 reply_id: 133578[/import] [/quote]
Hi Naomi I have tried to use this but i am getting error when i tried this
local levelTen = {}
levelTen.image1 // error shows here in this line
levelTen.image2
levelTen.image3
levelTen.image1gold
levelTen.image2gold
levelTen.image3gold
errror::
com.MYDevelopers.LuaSupport.ParseTree.ParseException: Encountered " "levelTen “” at line 73, column 1.
Was expecting one of:
“:” …
“.” …
“(” …
“{” …
“[” …
<sin_quote> …</sin_quote>
<dbl_quote> …</dbl_quote>
“[” …
“.” …
“:” …
“(” …
“{” …
<sin_quote> …</sin_quote>
<dbl_quote> …</dbl_quote>