Jump to content
Sign in to follow this  
deanimo

play animation after animation ends

You are about to reply to a thread that has been inactive for 3405 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

hello, i need a script to play some animations.. 5 or 6 animations.. and i wanna the second starts after the first one finish.. and the third one when the second one finished.. and all when the previous finished, and i dont know how to do it because i only found the llStartAnimation() and llStopAnimation() function.. and i dont have a function to know when an animation ends, or get what is the lenght of one animation.. so.. any idea? thanks..

Share this post


Link to post
Share on other sites

If you want to play several animations in a row, you'll need to know how long each one is beforehand.  Then play the first one with llStartAnimation and set a timer. When the timer fires, stop the first one with llStopAnimation, play the next one and set a new timer, and so on.  There's no way to measure the length of an animation with a script.

Share this post


Link to post
Share on other sites

lsl does not know how long an animation is, or how long it has taken to download before it starts....

you can get rough timings by playing a lower priority copy of an animation under a stationary one, or a previous one, and then restart it when it should be finished (a way to preload the animation). you could do this for each animation before you begin to make them run more accurately together for your timer... but you'll need to figure out how long each plays on your own

 

there is a perfectly aligned alternative that does not require a script at all.... a gesture will detect when one animation is done and another started (because it runs on your client not the SL server).

Share this post


Link to post
Share on other sites

I have no experience with that myself, not being an animator, but the SL Wiki says

"Animations can have no more than 30 seconds worth of unique frames.

Linear animations can potentially be 50 seconds long if ease in and ease out are set to the maximum of 10 seconds,"

so I'm guessing that the answer is a very limited yes.  I suspect that the OP has something more than a total of 30 seconds worth of unique frames in mind, however, so in his case the answer is probably no.  Not a bad question, though.  :smileyindifferent:

Share this post


Link to post
Share on other sites
You are about to reply to a thread that has been inactive for 3405 days.

Please take a moment to consider if this thread is worth bumping.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...