Setting up animator

Okay, so… I solved my last question and i am about to accept the answer.

Anyway, i have some nice animations for my character, but i am having a problem. As i said before, i am a horrible animator, and i always tried to avoid the animator, but i have no chance, i am going to make something complex.

I am using the First Person Character, and i am using a rigged model as it’s body/corpse. I also have all the animations (dying,walking,jumping,etc…). The problem is that i don’t know how to setup the animator.

Could someone write a tutorial for me or something? Please don’t just link a page or video. I wanted to learn how to make for an example:

If player is holding W, then continue making the forward walking animation. If he stopped, then make the stop walk animation.

Could someone help me? I would really appreciate if someone could help me on this. Oh, and i am using animator, i am NOT using animation clips.

Add an Animation Component to your Player then in the script:

if(Input.GetKey(KeyCode.W)) {
gameObject.GetComponent<Animation>().Play("WalkAnim");
}
if(!Input.GetKey(KeyCode.W)) {
gameObject.GetComponent<Animation>().Stop("WalkAnim");
}

Also don’t forget to go into Debug mode in Unity and set your animations into Legacy mode.

Read This and This

This is a very basic code just to demonstrate what you can do. You can also use Animation Events.

Event System