Please help with my confusion, I’m new to corona.
I have the following very simplified code.
local rect = display.newRect( 100, 100, 50, 50 ) rect:setFillColor(255, 255, 255) function tweenEvent(event) print (event) end transition.to(rect, {delay = 2000,time=2000 , x= -20, delta = true, onStart = tweenEvent("onStart"), onComplete = tweenEvent("onComplete")})
The code outputs immediately
onStart
onComplete
I expected the onComplete to be delayed by 4 seconds.
Have I found a bug? or is this how its supposed to operate (the documentation implies otherwise).
my corona version is 2013.1135 (2013.6.3)