x


Walking Animation

Hey I want it so when my character walks the animation starts, and when he stops so does the animation.

more ▼

asked Apr 21 '10 at 01:13 AM

DTJ Productions gravatar image

DTJ Productions
57 19 20 25

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

1 answer: sort voted first
var isWalking: boolean;

function Update(){

    if (isWalking){
       animation.Play ("walk");
    } else {
       animation.Stop("walk");
    }
}

Something like that, dropped on the model. Here's the documentation

more ▼

answered Apr 21 '10 at 01:17 AM

spinaljack gravatar image

spinaljack
9.1k 18 31 91

What function is this in.

Apr 21 '10 at 03:26 AM DTJ Productions

You'll have to say when the model is walking with your movement script and you need an animation called "walk"

Apr 21 '10 at 09:38 AM spinaljack

no that didn't work

Apr 22 '10 at 10:40 PM DTJ Productions

I added the script to my characters moving script and no error happened and the animation didn't turn on.

Apr 22 '10 at 11:59 PM DTJ Productions

Try reading the manual: http://unity3d.com/support/documentation/Manual/Character-Animation.html Makes sure the animations are named and setup correctly

Apr 23 '10 at 10:27 AM spinaljack
(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:

x3772
x224
x142
x67

asked: Apr 21 '10 at 01:13 AM

Seen: 3776 times

Last Updated: Apr 21 '10 at 01:13 AM