public AnimatedSprite(float timePerFrame, boolean startPlaying,boolean isLooping)
  {
    animations = new Hashtable();
    images = new ArrayList();
    this.timePerFrame = timePerFrame;
    this.isPlaying = startPlaying;
    this.isLooping = isLooping;
  }