#1
|
|||
|
|||
how to have random animations play one after the other?
Im trying to make an animated tree but I dont want the rustling to be too predictable. I was thinking of having a few "idle" animations that would randomly play one after the other. What would be the best way of doing this?
Also I need to be able to interrupt the looping idle animations to play a strong wing animation then go back to the loop. currently I have this: while(True): print(count) x = random.randint(0,3) if(x==0): tree3.state(1) yield viztask.waitTime(2) if(x==1): tree3.state(1) yield viztask.waitTime(2) if(x==2): tree3.state(5) yield viztask.waitTime(2) if(x==3): tree3.state(6) yield viztask.waitTime(2) but this causes it to stutter since the animation changes in the middle of another. using tree3.addAction(vizact.animation(3)) would solve this problem, but then I'm not able to play the stronger rustling animation. |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Modifying CAF Animations | MissingAFew | Vizard | 5 | 06-11-2015 03:46 PM |
random coding | Saz | Vizard | 1 | 05-27-2010 05:44 PM |
random speed and associated coding | Saz | Vizard | 1 | 05-20-2010 04:03 AM |
Trouble using custom animations for Live Characters | IGoudt | Vizard | 0 | 09-24-2009 06:37 AM |
problem with female animations | vmonkey | Vizard | 1 | 10-07-2005 10:36 AM |