Animation Fail

Hi I’m stuck i’ve been trying to figure out how to get two animations working in my game( they are in game animations not a cutscence) the idea is that when you are not moving it plays breathing animation and when you move it stops breathing to play walking animation but when i move it plays walking animation but does not go back to breathing animation also the walking animation plays out fully when it should stop once you stop moving the character( not what i wanted) the animations work well alone though i would really appreciate if some one could help me with the problem

I suggest start the according animation dependent on the state change.

when starting moving: start playing walk animation
when starting standing: start standing animation.

To make that easier to implement you might want to use the build-in state machine.

How to: use build-in states - a simple FSM tutorial