title: How can you animate a sprite in SFML
body: <p>Lets say I have 4 images and I want to use these 4 images to animate a character. The 4 images represent the character walking.  I want the animation to repeat itself as long as I press the key to move but to stop right when I unpress it.  It doesn't need to be SFML specific if you don't know it, just basic theory would really  help  me.</p>
  
  <p>Thank you. </p>