Hey all,
the post is pretty self explanatory, trying to do
[lua]local test1 = {}
new = function (params)
test.localGroup = display.newGroup()
local showBack = function()
local back = display.newImage(“back.png”)
test.localGroup:insert(back)
end
test1.showBack = showBack
return test.localGroup
return test1
end[/lua]
obviously doesn’t work, I’m guessing cause it has two returns in the end, but what is the workaround for it.
Thank you for your time. [import]uid: 106739 topic_id: 34068 reply_id: 334068[/import]