onUpdate parameter for object transitions

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]

How is this different from enterFrame? Transition updates are done at that time.
[import]uid: 54 topic_id: 1149 reply_id: 3179[/import]

I know the transition is updated itself. I would like to call other stuff like collision detection automatically with the corresponding object, without the need to loop through a table. [import]uid: 5712 topic_id: 1149 reply_id: 3184[/import]