It would be awesome if instead of just having just an Idle_D animation we could add any number of variations of that sprite (Idle_D1, Idle_D2 etc). And whenever the Idle_D animation should be activated, They would be played in sequence in a random order.
This would make it really simple to do variations like making the player shrug his shoulder some times, blink or whatever. Also useful to introduce some variations while speaking.
Comments
The Brain2D_SpritesUnityComplex character provided in the 2D demo is much appreciated but I still can't figure out how to get the random Idle states to work..
The script you linked to should be placed on the character game object right? And then how should I set up the transitions?
I don't suppose anyone else has done this and could show me a screen dump of the animation controller or even a working sample?
Thanks!
I would still love to see a simpler implementation for this. I did mess around with Unity's support for triggering method called from animation key frames which provided a somewhat cleaner solution, but still far from ideal for something that is quite common.
Another solution would be to fire an event whenever the player has been idling for a while (perhaps the frequency and randomness could be set in the settings manager).
Thanks four your help in guiding me through this though!