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 Script(Help)

Walking Animation Script(Help)

Go to page : Previous  1, 2

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

26 Re: Walking Animation Script(Help) on Fri Jul 25, 2014 10:50 am

FainterStreaker


Member [Lv. 3]
Member [Lv. 3]
Yes. That was a stressful two days

View user profile

27 Re: Walking Animation Script(Help) on Fri Jul 25, 2014 11:05 am

developer23


Moderator
Moderator
FainterStreaker wrote:Yes. That was a stressful two days
Very Happy

View user profile http://masterdevelopers.altervista.org/

28 Re: Walking Animation Script(Help) on Sat Jul 26, 2014 11:23 pm

Noahfoah


Member [Lv. 1]
Member [Lv. 1]
MisterNinjaBoy wrote:It essentially does the same thing. Also developer 23, I reccomend you use animation.crossfade insdead of animation.play.
i am having problems with animation is it possible to download one if so can you give me one?

View user profile

29 Re: Walking Animation Script(Help) on Thu Aug 07, 2014 5:24 pm

asihall


Member [Lv. 0]
Member [Lv. 0]
FainterStreaker wrote:Yes. That was a stressful two days


So... I'm in your shoes, what did you do to fix it? Razz

View user profile

30 Re: Walking Animation Script(Help) on Mon Sep 01, 2014 5:26 pm

tanay2003


Member [Lv. 2]
Member [Lv. 2]
same happend to me i reset the animation script by editing it in mono createing new and NOT COPY PASTE type it in, then go to main camera find animation at the right side bar and click reset to prefab, drag script in, initilize it if it says not initilized, done Very Happy

View user profile

31 Re: Walking Animation Script(Help) on Mon Sep 01, 2014 8:59 pm

FainterStreaker wrote:Here is the video to my problem:
https://www.youtube.com/watch?v=HaGxoRZi8E4&list=UU03K626PqGtDR9ucffWfpLA

You have to mark the animation as a legacy animation. Right now it is probably a generic.
Select the animation clip in your Project > Go to the Inspector tab and clip on the “hamburger (3 line)” button > Then select “Debug”.
The inspector options will change into debugging mode and there set the “Animation Type” from 2 to 1. Set the inspector mode back to “Normal” through the hamburger button and it’s fixed! No more legacy warnings!

Here is a visual for you, just in case you didn't get it..

View user profile http://www.youtube.com/user/misterninjaboy

32 Re: Walking Animation Script(Help) on Sat Sep 06, 2014 9:02 am

DeveloperLuke


Moderator
Moderator
play animation with Transform.animation.Play();

View user profile

33 PLEASE HELP!!!!!!!!!!!!!!!!!!!!!!! on Tue Sep 23, 2014 8:52 pm

gggsss


Member [Lv. 0]
Member [Lv. 0]
it wont work for me I add it to my gun it wont play the animation please help!!!!!!!!!!!!!!

View user profile

34 Re: Walking Animation Script(Help) on Wed Oct 22, 2014 8:42 pm

zXSmashXz


Member [Lv. 1]
Member [Lv. 1]
developer23 wrote:I use this Script created by me Very Happy:


FIRST SCRIPT (PLAY ANIMATION):  
Code:
var AnimationClip : AnimationClip ;
function Update() {

if (Input.GetKeyDown (KeyCode.W))
{
    animation.Play();
 
}

}




SECOND SCRIPT (STOP ANIMATION):
Code:
var AnimationClip : AnimationClip ;
function Update() {

 if (Input.GetKeyUp (KeyCode.W))
{
    animation.Stop();
 
}

}





Where do I add the animation in this script?

View user profile

35 Re: Walking Animation Script(Help) on Wed Oct 22, 2014 8:45 pm

zXSmashXz


Member [Lv. 1]
Member [Lv. 1]
Ok, I get it now sorry

View user profile

36 Re: Walking Animation Script(Help) on Thu Oct 30, 2014 4:39 pm

rocktech


Member [Lv. 2]
Member [Lv. 2]
does not work someone help me plz Laughing Smile

View user profile

37 Re: Walking Animation Script(Help) on Sat Nov 22, 2014 9:51 am

CreeperGuy911


Member [Lv. 0]
Member [Lv. 0]
Thx man it worked Smile

View user profile

38 Re: Walking Animation Script(Help) on Sat Nov 22, 2014 12:05 pm

developer23


Moderator
Moderator
CreeperGuy911 wrote:Thx man it worked Smile
Very Happy

View user profile http://masterdevelopers.altervista.org/

39 Animation crashing on Sun Dec 28, 2014 6:49 pm

Icenerxzxox


Member [Lv. 0]
Member [Lv. 0]
function Update()
{
if(Input.GetKeyDown("w"))
{
// Plays the walk animation - stops all other animations
animation.Play("walk", PlayMode.StopAll);
}
}

I put this in do the same thing as the video says and the animation goes without me pressing w,
and when I press it unity crashes all together. Help me!

View user profile

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

Go to page : Previous  1, 2

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