Hi Folks!
I’m in a position where i need to predeclare 90 local images, these will control the level stars on the level select screen.
I added them by using
local Level1Stars
but it sent me an error saying the upvalue of that function is above 60.
After some research i discovered why i can’t do this.
My question is, instead i am using a local table to contain my upvalues.
Can you tell me if this is right and safe?
Predeclaring images varaibles
local World1Stars = {
World1Stars1, World1Stars2, World1Stars3...
}
Within the function
[code]…
World1Stars1 = display.newImage(…)_W, _H)
World1Stars2 = display.newImage(…)_W, _H)
World1Stars3 = display.newImage(…)_W, _H)
…
[/code]
I ask because, if i don’t do the local table, it works anyway, but this is because they’re then all global variables!
So this means they’re all local yes? while reducing upvalues?
Thanks, Matt
PS: My games going awesomely 
[import]uid: 91798 topic_id: 18419 reply_id: 318419[/import]