Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Lukas on August 10, 2012, 04:19:40 AM

Title: [Feature request] PlayDir.Reverse & delays
Post by: Lukas on August 10, 2012, 04:19:40 AM
Hi,

I'm doing a fair bit of animating GUI elements and there is one small thing whats a little bit annoying.
In my case I'm animation characters with speech balloons, what happens is a character slides into view and after X time his speech balloon comes in. The X time be set on the Tween with delay. That's great! But when the character is done talking I call reverse, the speech balloon delays, goes away and somewhere in between the character had moved out again.

What I really wanted was to do the exact reverse, including the delay. So it would be more like do speech balloon tween, wait and the character slides out. The solution now is to either create two separate tweens which are identical except for the delay or some stuff in code.

Its probably how its build but in practice when I want the tween to reverse, it should do the exact reverse including the delay.
Any thoughts on this?
Title: Re: [Feature request] PlayDir.Reverse & delays
Post by: ArenMook on August 10, 2012, 04:35:26 AM
I suggest creating an animation for that rather than using a tween. You'll be able to do a delay quite easily that way, and make fancier transitions to boot. And chances are -- it will actually be easier to configure.
Title: Re: [Feature request] PlayDir.Reverse & delays
Post by: Lukas on August 10, 2012, 04:48:26 AM
Yea an animation has the behaviour I want. I am very fond of NGUI's animating system because its so easy to create complex animations with basic stuff like position, scale, color etc. Loving it! So thanks building that ;)

Just to confirm, you are not considering adding an option to include delays when reversing tweens?
Title: Re: [Feature request] PlayDir.Reverse & delays
Post by: ArenMook on August 10, 2012, 03:48:01 PM
There is nothing that can be done with tweens that can't be done better with animations, so it doesn't make that much sense to keep bloating the tween code. Tweens are for simple things, animations are for complex things. Also I didn't build the animation system, it's the Unity's built-in system. NGUI simply works with it.