x


changing animation of a character

So, I am working with a penalty kick game. I have downloaded a 3D model in asset store and find it easier to work with rather than importing from an external file (I'm not really good with this area). This 3D model comes with different animation which I find very useful in my game.

As a start, I assign the IDLE animation to the model and hit run, so far it's looking good and smooth :) However, I'm stuck with how I'm suppose to change the animation to the other like RUN or WALK during a particular event. Let's say I already have an event setup so what I need is a way to assign RUN animation to the model when the run event is triggered. Anyway to do this? Thanks in advamce. :)

EDIT:

reading the unity script reference, I got something like Animation object but is still unsure of how to work on it.

more ▼

asked Aug 29 '12 at 01:29 AM

jpac gravatar image

jpac
35 3 5

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

1 answer: sort voted first

ok I got it, just have to play with Animation.Play function.

more ▼

answered Aug 29 '12 at 03:03 AM

jpac gravatar image

jpac
35 3 5

(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:

x3802

asked: Aug 29 '12 at 01:29 AM

Seen: 113 times

Last Updated: Aug 29 '12 at 03:03 AM