how do u make a sprite do a walking animation when u make it move left or right