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 » FREE Project Downloads & Recources » Scripts » Play Walking Animation

Play Walking Animation

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

1 Play Walking Animation on Fri Apr 17, 2015 2:28 pm

VicTore UpZombieZ


Member [Lv. 2]
Member [Lv. 2]
Code:
//Made by VicTore UpZombies
var AnimationClip : AnimationClip ;


function Update() {





 if (Input.GetKeyDown (KeyCode.W))


{


    GetComponent.<Animation>().Play(); 


   }


    if (Input.GetKeyDown (KeyCode.S))


{


    GetComponent.<Animation>().Play();


   }


    if (Input.GetKeyDown (KeyCode.A))


{


    GetComponent.<Animation>().Play(); 


   }


    if (Input.GetKeyDown (KeyCode.D))


{


    GetComponent.<Animation>().Play();


  


  


}





}



View user profile

2 Re: Play Walking Animation on Sun Apr 19, 2015 5:37 am

developer23


Moderator
Moderator
Very simple but nice

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

3 Re: Play Walking Animation on Sun Dec 27, 2015 10:34 am

stissen123


Member [Lv. 2]
Member [Lv. 2]
Thanks A Lot! Very Happy Helped Me Play My Animation!
           ( Since I Am Clearly A Noob..)


Edit:
As Mentioned Before, i am a noob, thus i am asking for a tutorial...
Summary: It did not work for me... Maybe im just doing something wrong, or unity 5 is retarded Razz

View user profile

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