Unity Ninja Unity 3D Forum
To have exclusive access to all downloads, recourses and links within this forum, a free registered account is required. Just a heads up Wink
Share
Go down
Member [Lv. 2]
Member [Lv. 2]
Posts : 7
Points : 1655
Rep : 0
Join date : 2014-01-18
View user profile

Walking Animation not working

on Sat Jan 18, 2014 4:16 pm
Hey there,

Ik get the following error when i set walking animation for my gun

The animation state walking animation 3 could not be played because it couldn't be found!
Please attach an animation clip with the name 'walking animation 3' or call this function only for existing animations.
UnityEngine.Animation:Play(String, PlayMode)
walkingscript:Update() (at Assets/walkingscript.js:6)
avatar
{SUPER MEMBER}-LV.4
{SUPER MEMBER}-LV.4
Posts : 144
Points : 1888
Rep : 10
Join date : 2013-12-30
Location : Right behind you.
View user profile

Re: Walking Animation not working

on Sat Jan 18, 2014 6:01 pm
I'm not a animation expert but if you are watching tutorial 3 go to tutorial 5 and he explains how to do it the right way at the end.
Member [Lv. 0]
Member [Lv. 0]
Posts : 1
Points : 1637
Rep : 0
Join date : 2014-01-28
View user profile

Re: Walking Animation not working

on Tue Jan 28, 2014 9:58 pm
Hello,
my problem is this: I followed steps very carefully, I created animation, which is working. But when I play the game and press "w" or any other key, nothing happens. Yes, I moved the file to my gun, I aslo tried moving it to hand, but none of it is working. Im using windows 8, 64x, unity version 4.3.3.

Thanks for reply!! I really like this!
avatar
Member [Lv. 1]
Member [Lv. 1]
Posts : 2
Points : 1601
Rep : 0
Join date : 2014-03-06
View user profile

Re: Walking Animation not working

on Thu Mar 06, 2014 9:18 pm
Yeah, I have the same problem as Tigris, and also have Windows 8.1 64x. Any help would be greatly appreciated.
avatar
SUPER MODERATOR
SUPER MODERATOR
Posts : 279
Points : 2142
Rep : 58
Join date : 2013-12-16
Age : 17
Location : Boise Idaho United States
View user profile

Re: Walking Animation not working

on Fri Mar 21, 2014 9:34 pm
here is a script to use:

Code:
#pragma strict
function Update () {
if(Input.GetKeyDown("w"))
{
animation.Play("walk", PlayMode.StopAll);
Debug.Log("played walk animation");
}
if(Input.GetKeyDown("d"))
{
animation.Play("rightsidestep", PlayMode.StopAll);
Debug.Log("played rightsidestep animation");
}
if(Input.GetKeyDown("s"))
{
animation.Play("leftsidestep", PlayMode.StopAll);
Debug.Log("Played Left Side Step Animation");
}
if(Input.GetKeyDown("w"));
animation.Play("backstep", PlayMode.StopAll);
Debug.Log("Played backstep animation");

}
this code should help you, just make sure to rename your animations to the ones in the script
This script was made by me, please give me a little credit, not too much though Wink
avatar
Member [Lv. 1]
Member [Lv. 1]
Posts : 2
Points : 1601
Rep : 0
Join date : 2014-03-06
View user profile

Re: Walking Animation not working

on Thu May 15, 2014 1:14 am
Thank you for your help, and script. I got it working :p
avatar
SUPER MODERATOR
SUPER MODERATOR
Posts : 279
Points : 2142
Rep : 58
Join date : 2013-12-16
Age : 17
Location : Boise Idaho United States
View user profile

Re: Walking Animation not working

on Thu May 15, 2014 5:39 pm
MistaMcswagg wrote:Thank you for your help, and script. I got it working :p
thanks Razz
Back to top
Permissions in this forum:
You cannot reply to topics in this forum