Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: diegoquarantine on February 10, 2014, 09:05:27 PM

Title: Character animation - Idle animations when you stop playing for a few secs.
Post by: diegoquarantine on February 10, 2014, 09:05:27 PM

Hello everyone!. I've been thinking about this for some time now but can't think of any way right now to start with this.
I want to load a few animations of the main character doing some funny things like smoking a cigarette or something for when you stop playing for a moment.
The thing is that I can't think of a good way to count seconds for that to happen. I don't know if I should test the movement of the cursor and then if not moving start counting or something like that.
Have someone did something like this before?
Can anyone point me in the right direction?.

Thank you!!  ::slug

PS: Sorry for my English, it's not my natural language.
Title: Re: Character animation - Idle animations when you stop playing for a few secs.
Post by: redfox on February 10, 2014, 09:33:53 PM
You can adapt a script like this to pick a random actor animation


http://forum.dead-code.org/index.php?topic=17.msg51#msg51 (http://forum.dead-code.org/index.php?topic=17.msg51#msg51)
Title: Re: Character animation - Idle animations when you stop playing for a few secs.
Post by: diegoquarantine on February 11, 2014, 04:35:53 AM

Thanks mate! worked like a charm!  U ::rock