Author Topic: How do you set how far a button animation will move the panel?  (Read 4788 times)

zippo227

  • Jr. Member
  • **
  • Thank You
  • -Given: 4
  • -Receive: 0
  • Posts: 55
    • View Profile
I'm trying to make a copy of the Example 3, but my panel doesn't move far enough when the animation plays. The front panel moves, but the back panel only moves half as far as it should. The back panel should be resetting back to it's initial 0,0,0

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How do you set how far a button animation will move the panel?
« Reply #1 on: July 03, 2013, 06:01:06 AM »
How are you moving them? Via tweens? Then just adjust the from and to positions on your tween. Animation? Then adjust the animation.

zippo227

  • Jr. Member
  • **
  • Thank You
  • -Given: 4
  • -Receive: 0
  • Posts: 55
    • View Profile
Re: How do you set how far a button animation will move the panel?
« Reply #2 on: July 03, 2013, 03:30:51 PM »
I am doing it through animations. I'm guessing that it's a parameter of the animation that is a attached to the panel?

Also, your animation looks really slick. Mine, the panel and text just seems to move to the left and don't look nearly as cool. Is that controlled by the part of the UIButtonAnimation with forward, toggle, or reverse?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How do you set how far a button animation will move the panel?
« Reply #3 on: July 03, 2013, 04:04:04 PM »
UIButtonAnimation simply plays the animation. Unity is what makes the animation.

You can modify animations and create new ones by opening the Animation window (CTRL+6). Move the time, move the object, see the result.

zippo227

  • Jr. Member
  • **
  • Thank You
  • -Given: 4
  • -Receive: 0
  • Posts: 55
    • View Profile
Re: How do you set how far a button animation will move the panel?
« Reply #4 on: July 30, 2013, 02:02:31 AM »
I see. Thank you that worked. It was really helpful to start looking at the animation window to understand how these animations work.