Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: maesla on October 24, 2013, 09:38:35 AM

Title: Rewind a tween or use the pong of pingpong
Post by: maesla on October 24, 2013, 09:38:35 AM
Hello everyone.

Very short question:

Is there any way for doing a rewind of a tween effect? I use it in a popup. I have a tween when the popUp shows up. I want the same effect when the popUp is hidden, but the opposite. It is basically to use the "pong" of the pingpong Style.

Thank you very much
Title: Re: Rewind a tween or use the pong of pingpong
Post by: Cwal on October 24, 2013, 07:06:55 PM
Set whatever you are using to trigger the tween to toggle, as in the button tween script.
Title: Re: Rewind a tween or use the pong of pingpong
Post by: maesla on October 25, 2013, 06:29:47 AM
Set whatever you are using to trigger the tween to toggle, as in the button tween script.

Thank you for your answer but I do not get your point.

I think with that, you have not a rewind effect
Title: Re: Rewind a tween or use the pong of pingpong
Post by: Darkmax on October 25, 2013, 08:26:53 AM
the tween scripts has a toggle method, this play the animation first forward and then if you called again it play the animation backwards, I think that what you need.