- Home /
 
               Question by 
               TheRichardGamer · May 24, 2013 at 02:29 PM · 
                animationcameraplayer  
              
 
              Walk animation for camera isn't playing
So I'm trying to make a walk effect to the camera when I press either W or S, but it dosen't really work. Here is my script, is there anything wrong here?
 var Player : GameObject;
 
 
 function Update () {
 
 if(Input.GetKey("w")){
 
     Player.animation.Play("Walk");
 
     }
     
     
     if(!Input.GetKey("w")){
 
     Player.animation.Stop("Walk");
 
     }
     
     if(Input.GetKey("s")){
 
     Player.animation.Play("Walk");
 
     }
     
     
     if(!Input.GetKey("s")){
 
     Player.animation.Stop("Walk");
 
     }
     
     
     
 }
               Comment
              
 
               
              Your answer
 
 
             Follow this Question
Related Questions
I can't look up and down because of animation on camera? 2 Answers
Animation automatique personnage 0 Answers
Camera switch | issue 0 Answers
Camera Animation plays once 0 Answers
How to make remote player's healthbar GUI look at local player's camera? 0 Answers
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                