Author Topic: Playing several animation in proper sequence  (Read 2627 times)

fasadin

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Playing several animation in proper sequence
« on: January 22, 2014, 10:58:49 AM »
Hello

I am stuck on playing several animation in proper sequence.
I have on sprite box collider. When I clicking on it. It playes 3 animation.
- First it's scaling actual sprite that was clicked
- Second that move whole panel to left (out of camera)
- Third that move another panel to camera

Now, every animation works in the same time. But I want have something like
When first is finished then play two others.

I tried do that with using Animator but somehow animator does not work with those animations (Example 3 has the same animation, and with those animation also animator does not work)

Can be that done with "clicking/dragging" stuff? Or should I write my script for this? If script then how to recognize which UIPlayAnimation is which, cause there have the same name, so probably then I need look for properties (if name == "first") but this solution is not very nice.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Playing several animation in proper sequence
« Reply #1 on: January 23, 2014, 06:58:06 AM »
Animator and the legacy animation system are two different things, which is why it's not working in your case. New animation system uses the Animator, where the old animation system just uses the Animation.

I advise using tweens instead. They're easier to use and more to the point -- go from A to B. Tip: right-click on the tween to set the to/from positions.