- Home /
Question by
buckethead3495 · Jul 13, 2011 at 09:41 AM ·
animationanimating
Help with making an animation play for X amount of seconds?
I was wondering if anybody new any code for making an animation play for a set number of seconds (or frames) then stop? Also if you could make the animation start mid way through at a set point? Thank you in advance for any help :)
Comment
Answer by Waz · Jul 13, 2011 at 11:22 AM
Write the code yourself - something like:
animation.Play("dance");
yield WaitForSeconds(5.0);
animation.Stop("dance");
Of course, you should understand that code before you try to just copy-and-paste it randomly into your project. In particular, understand yield
.
Your answer
Follow this Question
Related Questions
Camera Pan 1 Answer
How to play an animation on button press only in trigger stay? 1 Answer
Idle Animation Not Playing 1 Answer
Animation Problems (Teleporting) 0 Answers
activating animations 1 Answer