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!!!!!!
Code:
var AnimationClip : AnimationClip ;
function Update() {
if (Input.GetKeyDown (KeyCode.W))
{
animation.Play();
}
}
Code:
var AnimationClip : AnimationClip ;
function Update() {
if (Input.GetKeyUp (KeyCode.W))
{
animation.Stop();
}
}
MisterNinjaBoy wrote:Please next time, post in the right section, it keeps things in order. Moved it.
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
developer23 wrote:I use this Script created by me :
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();
}
}
Code:
if (Input.GetKeyDown (KeyCode.W))
developer23 wrote:Code:
if (Input.GetKeyDown (KeyCode.W))
|
|