Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Animations

Jerry Ubble
Registered User
Join date: 6 Mar 2009
Posts: 6
05-16-2009 05:51
Hello
I am trying to make a avatar do a few animations one after another. Now I have the animations in a list and if I go through that list and request permission to animate for each animation, and then play that animation - the avatar does only the last one on the list.

Can you give me some pointers or tips on how to play more than one animation?

thanks in advance-
Anti Antonelli
Deranged Toymaker
Join date: 25 Apr 2006
Posts: 1,091
05-16-2009 08:05
Couple of general things:

- the script only needs to request permission once for a given avatar, then it can play any number of animations without asking again.

- you need some kind of timer to step through your list leaving enough time for each animation to play through, otherwise it won't wait for one animation to finish before going on to the next. That's probably what you're seeing now, the script is playing all the animations but you only see the last one because all the rest only played for 0.0001 seconds or something.
_____________________
Designer of sensual, tasteful couple's animations - for residents who take their leisure time seriously. ;)

http://slurl.com/secondlife/Brownlee/203/110/109/

Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
05-16-2009 13:52
you can also use that overfast playing to your advantage to get those animations to preload to the client before the next one is triggered.

list your animations backwards in order of play, then play the whole list rapid fire, then walk backwards through your list to play each individual one after a certain time.

(or do your rapid fire loop going backwards through the list, and then walk forward through the list in timed normal order)
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -