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) » help the walking animation is not working!!!!

help the walking animation is not working!!!!

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

1 help the walking animation is not working!!!! on Tue Jun 03, 2014 7:30 pm

rauno112233


Member [Lv. 0]
Member [Lv. 0]
the walking animation thing didn't work for me when i didn't press "W" it made the animation but when i pressed it the whole thing crashed so i deleted the script but it still keeps doing the walking animation help!!!!!!

View user profile

developer23


Moderator
Moderator
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();
 
}

}



Last edited by developer23 on Thu Jun 05, 2014 9:04 am; edited 4 times in total

View user profile http://masterdevelopers.altervista.org/
Please next time, post in the right section, it keeps things in order. Moved it.

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

developer23


Moderator
Moderator
MisterNinjaBoy wrote:Please next time, post in the right section, it keeps things in order. Moved it.
sorry, but I did not understand what should I move

No sorry, not you. I meant the OP.

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

Survivor


{SUPER MEMBER}-LV.4
{SUPER MEMBER}-LV.4
developer23 wrote:
MisterNinjaBoy wrote:Please next time, post in the right section, it keeps things in order. Moved it.
sorry, but I did not understand what should I move

No he means that he moved your message to the right section. lol! 

View user profile

Survivor


{SUPER MEMBER}-LV.4
{SUPER MEMBER}-LV.4
developer23 wrote:I use this Script created by me Very Happy:


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

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

}




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

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

}

I've noticed that these line exists in both codes :
if (Input.GetKeyUp (KeyCode.W))
.........................................................
Did you want to write :
 if (Input.GetKeyDown (KeyCode.W)) ?

View user profile

developer23


Moderator
Moderator
Yes,sorry,Input.GetKeyUp ahahahah



Last edited by developer23 on Thu Jun 05, 2014 9:04 am; edited 1 time in total

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

developer23


Moderator
Moderator
I am confused with the stop script ahahha

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

developer23


Moderator
Moderator
Code:
if (Input.GetKeyDown (KeyCode.W))

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

Survivor


{SUPER MEMBER}-LV.4
{SUPER MEMBER}-LV.4
developer23 wrote:
Code:
if (Input.GetKeyDown (KeyCode.W))
Is using this script to animate the player without character controller will make the animations realistic and smove?  Question

View user profile

developer23


Moderator
Moderator
servival wrote:
developer23 wrote:
Code:
if (Input.GetKeyDown (KeyCode.W))
Is using this script to animate the player without character controller will make the animations realistic and smove?  Question
if you create lifelike animations! but in the third person or first person?

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

Survivor


{SUPER MEMBER}-LV.4
{SUPER MEMBER}-LV.4
developer23 wrote:
servival wrote:
developer23 wrote:
Code:
if (Input.GetKeyDown (KeyCode.W))
Is using this script to animate the player without character controller will make the animations realistic and smove?  Question
if you create lifelike animations! but in the third person or first person?
Third person. and my anims are realistic.  Neutral 

View user profile

developer23


Moderator
Moderator
ah ok, then here it is complicated  Neutral 

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

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