x


last animation which was played

how can i command and ask if The last animation which was played is Ex("walk") play anther animation i couldnt use animation.IsPlaying and animation.Stop isn't a bool?

more ▼

asked Jun 30 '12 at 12:07 PM

Nedoon gravatar image

Nedoon
273 1 8 22

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Several animations can be played at the same time and blended, so you can't really ask for the last animation. You can store somewhere yourself though. For instance, create a string to store the animation clip's name and use this function instead of Play :

var lastAnim : String;
var currAnim : String;
function PlayAndStore( newAnim : String )
{
    lastAnim = currAnim;
    currAnim = newAnim;
    animation.Play(currAnim);
}
more ▼

answered Jun 30 '12 at 03:35 PM

Berenger gravatar image

Berenger
11.2k 12 19 54

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3929

asked: Jun 30 '12 at 12:07 PM

Seen: 199 times

Last Updated: Jun 30 '12 at 03:35 PM