Hi, I am developing a small quiz app just for fun, with a weird problem.
I have a drag and drop quiz, which uses a listener onTouch (classic), initialized by a local function setupQuiz (which follows the listener, of course).
Now, upon success, the listener calls this function:
-- Forward declaration
local setupQuiz
local function nextGame()
print("NEXT! ".. currentGrp.numChildren)
for i = 1, currentGrp.numChildren, 1 do
print("transition " .. tostring(currentGrp[i]))
transition.to(currentGrp[i], { time = 200, alpha = 0 })
end
setupQuiz()
end
This should in theory fade out every piece in the game, and it does it correctly, and then reinitialize everything… but the setupQuiz() isn’t called!
I find this very weird, I cannot see why it doesn’t work. I thought it could be due to some delay, so I’ve substituted the call with a timer, but even this doesn’t work.
Can anyone help me? [import]uid: 94362 topic_id: 35156 reply_id: 335156[/import]