title: What is the best way to do 2D animation?
body: <p>I'm writing a 2D animation class, and I've got <a href="http://en.wikipedia.org/wiki/Truevision_TGA" rel="nofollow noreferrer">TGA</a> pictures in which the player animation is stored. These pictures are 8x8 tiles (so on each row there are 8 frames of a moving character)</p>
  
  <p>However, I don't have a clue on how to animate this in code.</p>
  
  <p>I was thinking about updating it by moving the u-v coordinates each frame and returning only the current frame. How can I do this?</p>