I have never learned how to change an animation frame depend

-ing on direction, sorry i could not post he whole thing the title was to big
I have never learned how to change an animation frame depending on direction. could someone tell me the code? nframe, anipos?
or what?

or what?
