FragMate CommunityLog in

FragMate - Software and Game Developer Community, including Resources, Forums, Marketplace & More.

Share

descriptionPlay Walking Animation

more_horiz

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


  


  


}





}



descriptionRe: Play Walking Animation

more_horiz
Very simple but nice

_________________
Game Developer
YouTube Channel: [You must be registered and logged in to see this link.]
Website: [You must be registered and logged in to see this link.]

descriptionRe: Play Walking Animation

more_horiz
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

descriptionRe: Play Walking Animation

more_horiz
is very god

descriptionRe: Play Walking Animation

more_horiz
I like using animators more, but still, nice script.
Permissions in this forum:
You cannot reply to topics in this forum