Author Topic: Multiple animations with ButtonPlayAnimation  (Read 2328 times)

Chad Goodson

  • Guest
Multiple animations with ButtonPlayAnimation
« on: August 12, 2013, 03:21:48 PM »
I would like to make my character play back three separate animations in a loop when he is touched. I am able to play back one animation now with one touch but I don't know a way to switch to the next animation the next time he is touched. Please help.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Multiple animations with ButtonPlayAnimation
« Reply #1 on: August 12, 2013, 04:08:55 PM »
Don't use UIButtonPlayAnimation. Write your own custom code for something like this.

Chad Goodson

  • Guest
Re: Multiple animations with ButtonPlayAnimation
« Reply #2 on: August 12, 2013, 06:48:18 PM »
Thank you. I am not much of a coder so I think I will do it a different way. I think I will make my character into  three objects. Each object a player touches will elicit a different animation. So my question is this, is there a way to play back an animation and keep it sacred.? That is to say once the button has been pushed and an animation is played back, keep it from being Interrupted by another button push triggered animation. Is this possible? I would want the other buttons to be pushed once the animation is done.

Chad Goodson

  • Guest
Re: Multiple animations with ButtonPlayAnimation
« Reply #3 on: August 13, 2013, 02:10:58 PM »
Is this possible?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Multiple animations with ButtonPlayAnimation
« Reply #4 on: August 13, 2013, 07:58:25 PM »
Not without coding. :P

It's a pretty simple script however.

if (animation.isPlaying) then play, otherwise don't.