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
Share
Go down
Member [Lv. 2]
Member [Lv. 2]
Posts : 12
Points : 1355
Rep : 1
Join date : 2014-12-01
Age : 17
Location : Long Beach, CA
View user profile

Play Walking Animation

on Fri Apr 17, 2015 2:28 pm
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();


  


  


}





}



avatar
Moderator
Moderator
Posts : 329
Points : 2177
Rep : 43
Join date : 2014-03-12
Age : 18
Location : Italy
View user profilehttp://masterdevelopers.altervista.org/

Re: Play Walking Animation

on Sun Apr 19, 2015 5:37 am
Very simple but nice
Member [Lv. 2]
Member [Lv. 2]
Posts : 7
Points : 1651
Rep : 0
Join date : 2014-01-22
View user profile

Re: Play Walking Animation

on Sun Dec 27, 2015 10:34 am
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
Member [Lv. 0]
Member [Lv. 0]
Posts : 1
Points : 448
Rep : 0
Join date : 2017-05-01
View user profile

Re: Play Walking Animation

on Mon May 01, 2017 4:12 pm
is very god
avatar
Moderator
Moderator
Posts : 76
Points : 1927
Rep : 16
Join date : 2014-06-02
Age : 15
Location : Milky Way
View user profile

Re: Play Walking Animation

on Sun May 07, 2017 11:19 am
I like using animators more, but still, nice script.
Back to top
Permissions in this forum:
You cannot reply to topics in this forum