Author Topic: tween position and drag panel with momentum and spring  (Read 2564 times)

Darkmax

  • Jr. Member
  • **
  • Thank You
  • -Given: 2
  • -Receive: 1
  • Posts: 93
    • View Profile
tween position and drag panel with momentum and spring
« 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.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: tween position and drag panel with momentum and spring
« Reply #1 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.

Darkmax

  • Jr. Member
  • **
  • Thank You
  • -Given: 2
  • -Receive: 1
  • Posts: 93
    • View Profile
Re: tween position and drag panel with momentum and spring
« Reply #2 on: October 16, 2012, 10:59:30 AM »
thx it works