|
how can i have animations randomly play? for example i have 2 idle animations, one main and one that i would like to play once through at random intervals while the character is not moving. how would i go about getting this to happen? so far i can only get the main idle animation to play.
(comments are locked)
|
|
perhaps your idle animation could be controlled by a coroutine, something like this: how would i implement something like that? can barely muck through the demo scripts and patch together something that sort of works, i havent much of a clue when it comes to adding something along these lines.
Jan 17 '10 at 11:48 AM
kez717
the above code assumes that you would call the function Idle() when the character should start idling. You should also have a boolean variable called 'idling' which is set to true. The function above will keep playing idle animations until you set the 'idling' boolean variable to false.
Jan 17 '10 at 12:12 PM
duck ♦♦
(comments are locked)
|
|
This is what I did:
HTH
(comments are locked)
|
