public void follow(Character character)
  {
    Point target = character.getWorldPosition();
    Point min = new Point(this.position.x+(int)(this.width * 0.3f),this.position.y-(int)(this.height*0.2f));
    Point max = new Point(this.position.x+(int)(this.width * 0.3f),this.position.y-(int)(this.height*0.5f)+this.position.y);   
    if (target.x < min.x)
      this.position.x += target.x - min.x;
    else if (character.getWorldPosition().x > max.x) 
     this.position.x = target.x - max.x;    
    if (this.position.x < 0)
      this.position.x = 0;
  }