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

You are not connected. Please login or register

Unity Ninja Unity 3D Forum » HELP » Help (General) » Walking Animation not working

Walking Animation not working

View previous topic View next topic Go down  Message [Page 1 of 1]

1 Walking Animation not working on Sat Jan 18, 2014 4:16 pm

amichel252


Member [Lv. 2]
Member [Lv. 2]
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)

View user profile

2 Re: Walking Animation not working on Sat Jan 18, 2014 6:01 pm

MusicKing7


{SUPER MEMBER}-LV.4
{SUPER MEMBER}-LV.4
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.

View user profile

3 Re: Walking Animation not working on Tue Jan 28, 2014 9:58 pm

Tigris


Member [Lv. 0]
Member [Lv. 0]
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!

View user profile

4 Re: Walking Animation not working on Thu Mar 06, 2014 9:18 pm

MistaMcswagg


Member [Lv. 1]
Member [Lv. 1]
Yeah, I have the same problem as Tigris, and also have Windows 8.1 64x. Any help would be greatly appreciated.

View user profile

5 Re: Walking Animation not working on Fri Mar 21, 2014 9:34 pm

BryceCain25


SUPER MODERATOR
SUPER MODERATOR
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

View user profile

6 Re: Walking Animation not working on Thu May 15, 2014 1:14 am

MistaMcswagg


Member [Lv. 1]
Member [Lv. 1]
Thank you for your help, and script. I got it working :p

View user profile

7 Re: Walking Animation not working on Thu May 15, 2014 5:39 pm

BryceCain25


SUPER MODERATOR
SUPER MODERATOR
MistaMcswagg wrote:Thank you for your help, and script. I got it working :p
thanks Razz

View user profile

View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum