Yeah so I got an animation from mixamo but it keeps on animating even when Im not walking how do I make it animate ONLY when I walk so it doesnt look like he is walking in place? If you could give me some simple code or script or whatever its called Im a bit new to this and Im using the 3D Platform Tutorial. So if you could help that would mean alot.
first click on your character and in the inspector find where it says play automatically and uncheck that. your script should be like this:
function Update () {
Input.GetAxis(“Horizontal”);
animation.Play(“walk”);
}
where do i put this script?
First of all, put comments under comments, not as an answer. Second of all, the code:
function Update () {
Input.GetAxis("Horizontal"); animation.Play("walk");
}
Goes on the player. So add this script to the player. And do what wabijabi says, uncheck the animation in the inspector.
I did It but doesnt work!!!