Hi Ansca,
I would like to see another handler function added to the transition command. The parameter could be called onUpdate. If this parameter has been given a function, then at each internal update of the transition, that function is called.
[lua]local finishTransition = function (target)
target.parent:remove(target)
end
local updateTransition = function (target)
–do something for an example…
target:checkCollision()
end
–…
transition.to(object, {time=1000, x=50, y=420, onComplete=finishTransition, onUpdate=updateTransition }
–…[/lua] [import]uid: 5712 topic_id: 1149 reply_id: 301149[/import]