This is perfect thanks, i dont know why it was giving me problems!
however I came across another problem though i added animations for each action and they seem to argue with each other if i dont press into a specific direction. up,down,left,right, Exact.
The code basically looks like this.
Left analog - press left, play animation "run left"
Left analog - press right, play animation "run right"
etc etc, any idea what i can do about that?