title: how to make slick2D showing movement of my sprite
body: <p>i need some help in Java Slick2D library, from my experience in coding with this library i understood that the class which extends BasicGameState will call the update() and the render() methodes in an infinite loop, my problem is to find a way to call some methodes in render() methode which has some movement of a sprite, for exemple i have this methode :</p>
  
  <pre><code>public void move(Graphics g, Image sprite, int X, int Y){
      for(int i = 0; i &lt; 32; i++)
          g.drawImage(sprite, X+i, Y);
  }
  </code></pre>
  
  <p>when i call move(g, sprite, posX, PosY) in render() methode my sprite will teleport to the next 32 pixels without showing animations.
  what should i do to solve this problem and make my sprite moving correctly ?</p>