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. 3]
Member [Lv. 3]
Posts : 17
Points : 1512
Rep : -1
Join date : 2014-06-26
View user profile

Re: Walking Animation Script(Help)

on Fri Jul 25, 2014 10:50 am
Yes. That was a stressful two days
avatar
Moderator
Moderator
Posts : 329
Points : 2177
Rep : 43
Join date : 2014-03-12
Age : 18
Location : Italy
View user profilehttp://masterdevelopers.altervista.org/

Re: Walking Animation Script(Help)

on Fri Jul 25, 2014 11:05 am
FainterStreaker wrote:Yes. That was a stressful two days
Very Happy
Member [Lv. 1]
Member [Lv. 1]
Posts : 3
Points : 1462
Rep : 0
Join date : 2014-07-26
View user profile

Re: Walking Animation Script(Help)

on Sat Jul 26, 2014 11:23 pm
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?
Member [Lv. 0]
Member [Lv. 0]
Posts : 1
Points : 1446
Rep : 0
Join date : 2014-08-07
View user profile

Re: Walking Animation Script(Help)

on Thu Aug 07, 2014 5:24 pm
FainterStreaker wrote:Yes. That was a stressful two days


So... I'm in your shoes, what did you do to fix it? Razz
avatar
Member [Lv. 2]
Member [Lv. 2]
Posts : 8
Points : 1437
Rep : 1
Join date : 2014-08-28
View user profile

Re: Walking Animation Script(Help)

on Mon Sep 01, 2014 5:26 pm
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
avatar
Admin
Admin
Posts : 608
Points : 3170
Rep : 406
Join date : 2013-12-11
Age : 21
View user profilehttps://www.youtube.com/user/misterninjaboy

Re: Walking Animation Script(Help)

on Mon Sep 01, 2014 8:59 pm
Message reputation : 100% (1 vote)
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..

avatar
Moderator
Moderator
Posts : 76
Points : 1927
Rep : 16
Join date : 2014-06-02
Age : 15
Location : Milky Way
View user profile

Re: Walking Animation Script(Help)

on Sat Sep 06, 2014 9:02 am
play animation with Transform.animation.Play();
Member [Lv. 0]
Member [Lv. 0]
Posts : 1
Points : 1399
Rep : 0
Join date : 2014-09-22
View user profile

PLEASE HELP!!!!!!!!!!!!!!!!!!!!!!!

on Tue Sep 23, 2014 8:52 pm
it wont work for me I add it to my gun it wont play the animation please help!!!!!!!!!!!!!!
Member [Lv. 1]
Member [Lv. 1]
Posts : 2
Points : 1389
Rep : 0
Join date : 2014-10-21
View user profile

Re: Walking Animation Script(Help)

on Wed Oct 22, 2014 8:42 pm
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?
Member [Lv. 1]
Member [Lv. 1]
Posts : 2
Points : 1389
Rep : 0
Join date : 2014-10-21
View user profile

Re: Walking Animation Script(Help)

on Wed Oct 22, 2014 8:45 pm
Ok, I get it now sorry
Member [Lv. 2]
Member [Lv. 2]
Posts : 5
Points : 1397
Rep : 0
Join date : 2014-10-17
View user profile

Re: Walking Animation Script(Help)

on Thu Oct 30, 2014 4:39 pm
does not work someone help me plz Laughing Smile
Member [Lv. 0]
Member [Lv. 0]
Posts : 1
Points : 1681
Rep : 0
Join date : 2013-12-24
View user profile

Re: Walking Animation Script(Help)

on Sat Nov 22, 2014 9:51 am
Thx man it worked Smile
avatar
Moderator
Moderator
Posts : 329
Points : 2177
Rep : 43
Join date : 2014-03-12
Age : 18
Location : Italy
View user profilehttp://masterdevelopers.altervista.org/

Re: Walking Animation Script(Help)

on Sat Nov 22, 2014 12:05 pm
CreeperGuy911 wrote:Thx man it worked Smile
Very Happy
Member [Lv. 0]
Member [Lv. 0]
Posts : 1
Points : 1312
Rep : 0
Join date : 2014-12-28
View user profile

Animation crashing

on Sun Dec 28, 2014 6:49 pm
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!
Back to top
Permissions in this forum:
You cannot reply to topics in this forum