UnityNinja Community
Would you like to react to this message? Create an account in a few clicks or log in to continue.

UnityNinja CommunityLog in

UnityNinja - Video Game Development Community, including Resources, Forums, Marketplace & More.


Walking Animation Script(Help)

power_settings_newLogin to reply
+12
gggsss
DeveloperLuke
tanay2003
asihall
Noahfoah
FainterStreaker
DARTHVADEREX
daniel202gaming
yashtewarisaab
developer23
MisterNinjaBoy
Espon17
16 posters

descriptionWalking Animation Script(Help) - Page 4 EmptyRe: Walking Animation Script(Help)

more_horiz
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..
Walking Animation Script(Help) - Page 4 EeOx5aG
Walking Animation Script(Help) - Page 4 PmYFLVA

descriptionWalking Animation Script(Help) - Page 4 EmptyRe: Walking Animation Script(Help)

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

descriptionWalking Animation Script(Help) - Page 4 EmptyPLEASE HELP!!!!!!!!!!!!!!!!!!!!!!!

more_horiz
it wont work for me I add it to my gun it wont play the animation please help!!!!!!!!!!!!!!

descriptionWalking Animation Script(Help) - Page 4 EmptyRe: Walking Animation Script(Help)

more_horiz
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?

descriptionWalking Animation Script(Help) - Page 4 EmptyRe: Walking Animation Script(Help)

more_horiz
Ok, I get it now sorry

descriptionWalking Animation Script(Help) - Page 4 EmptyRe: Walking Animation Script(Help)

more_horiz
does not work someone help me plz Laughing Smile

descriptionWalking Animation Script(Help) - Page 4 EmptyRe: Walking Animation Script(Help)

more_horiz
Thx man it worked Smile

descriptionWalking Animation Script(Help) - Page 4 EmptyRe: Walking Animation Script(Help)

more_horiz
CreeperGuy911 wrote:
Thx man it worked Smile

Very Happy

descriptionWalking Animation Script(Help) - Page 4 EmptyAnimation crashing

more_horiz
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!

descriptionWalking Animation Script(Help) - Page 4 EmptyRe: Walking Animation Script(Help)

more_horiz
privacy_tip Permissions in this forum:
You cannot reply to topics in this forum
power_settings_newLogin to reply