Animation x_move y_move

so i am making a few pills and i need to know how to controll the move variables for x and y , the errors are shown in this video
http://www.wegame.com/watch/Animation_Failures/