Hi Guys,
We are creating a game which has more than 60 display objects in a single scene. We are declaring the ‘local’ variables outside createscene, and initializing them inside createscene.
The problem is, createscene function cannot take reference of more than 60 upvalues and ends up in error.
Is there any alternative to handle more than 60 variables in a single scene ? any best practices we are missing out on ?
Thanks in advance
[lua] local var1, var 2, var3 … var 60
function scene:createScene( event )
local group = self.view
group:insert(var1)
group:insert(var2)
.
.
group:insert(var60)
end[/lua]