Hello
I want a routine that allows me to call a function and then another, but that is only run once the first is finished.
This code does not work.
Thanks for your help
local free=true
rect=display.newRect(0,0,100,100)
function mam(num)
libre = false
local function exit ()
free=true
return
end
if libre == false then
transition.to( rect, {time=1000, x=num, onComplete=exit} )
end
end
repeat mam(300) until free == true
repeat mam(2) until free == true