Help with animation

i have a character with animations. How do I set it so that when i press the spacebar he does the jump animation. or when i tell him to move he does the walk animation? please explain this in plain english.

I recommend you check in scriptreference for Animation class. It has a "play" component which can be used like this:

// Plays the walk animation - stops all other animations in the same layer animation.Play ("walk"); // Plays the walk animation - stops all other animations animation.Play ("walk", PlayMode.StopAll);

description: plays animation without any blending. ps.also check out the fps example project