Anyone kind enough could maybe take the time to make a simple script i can attach to my player and fille out walk and idle animation and when wasd is held down play walk animation and when wasd is not pressed down play idle animation :] both animation are looped
-Thanks in advance,
Dave
ps. i probably sound like a noob but it is very hard for me to get scripting.
if(Input.GetAxis("Vertical")){
animation.CrossFade("walk");
}
else{
animation.CrossFade("idle");
}
It really is that simple. Adjust the code around where your movement is taking place etc, replace keys with inputs as needed , but thats about it. The only thing you need to do is make sure you assign the correct animations when you import the model.
is it me or does it not work?
Hmm , not sure , in my experiences of errors and bugs ((and i get a halla lota )) it usually comes down to one silly thing i did - or didnt do :(. Bettin same thing here. Just to clarify though , you know that after the model comes ino unity , you have to set the fbx importer settings and asign the animations by name and length ?
And than in the animations component of the object , verify that indeed all the animations are listed in the array it shows. Uhh , cant think of much else atm that may be out. Hope ya get er.
BTW : Input.GetKey(KeyCode.A); and KeyCode.D, S, W are all valid in the script as well if you need them to be actual keys instead of the Input generic that i wrote with vertical.
could you maybe rewrite the code ? :]
Perhaps you have to add variables? lol I dunno 
Make sure the animation names are the same as the animations you imported with the model.