Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Darkmax on October 16, 2012, 12:23:51 AM

Title: tween position and drag panel with momentum and spring
Post by: Darkmax on October 16, 2012, 12:23:51 AM
Hi i'm having a weird problem that before didn't have, i have several menus, and i use tween position to move my previous menu to the left and my next menu appear from the right all work fine if my menus has on drag effect momentum or none. But if has momentum and spring the menu that move to the left of the screen, first move to the left and then comes back where it was, i check tween position of the panel and hast method linear and style once.

i don't know why is this happening with the momentum and spring panel but if use the other two doesn't make this weird effect.
Title: Re: tween position and drag panel with momentum and spring
Post by: ArenMook on October 16, 2012, 08:27:22 AM
You need to TweenPosition a parent object, not the same panel that has the momentum on it. Try adding a parent game object for all your tweening work.
Title: Re: tween position and drag panel with momentum and spring
Post by: Darkmax on October 16, 2012, 10:59:30 AM
thx it works