Hi folks,
I don’t know what parameter I have to put into transition.cancel. The help file says a tween. Where do I retrieve this?
Michael [import]uid: 5712 topic_id: 740 reply_id: 300740[/import]
Hi folks,
I don’t know what parameter I have to put into transition.cancel. The help file says a tween. Where do I retrieve this?
Michael [import]uid: 5712 topic_id: 740 reply_id: 300740[/import]
Hi, Michael. You should put in the name of the transition that you declared. For example, if you had done this:
local myTween = transition.to( rect, { time=1000, alpha=0 } )
…then you would use
transition.cancel( myTween )
to cancel it. In other words, the tween name is returned by the initial “transition.to” function. [import]uid: 3007 topic_id: 740 reply_id: 1481[/import]
Thanks Evan for the explaination,
maybe you guys can enhance the help file more clearly about this by adding this little example.
Best wishes
Michael [import]uid: 5712 topic_id: 740 reply_id: 1486[/import]