public Link(int _x, int _y){
	x=_x;
	y=_y;
	direction='d';
	attackTimer = 0;
	tick=0;
	Lhp=10;
	currframe=0;
	maxframe=1;
	damage = 10;
	up=new BufferedImage[2];
	down=new BufferedImage[2];
	left=new BufferedImage[2];
	right=new BufferedImage[2];
	heroCash=0;
	//setHasKey(false);
	setHasSword(false);
	stab=new BufferedImage[4];
	try{

		 for(int i=0;i<2;i++){
	    	 System.out.println("images/LinkForward_0"+(i+1)+".png");
	     down[i] = ImageIO.read(new File("images/LinkForward_0"+(i+1)+".png"));
		 }
	     for(int i=0;i<2;i++){
	    	 System.out.println("images/LinkLeft_0"+(i+1)+".png");
	     left[i] = ImageIO.read(new File("images/LinkLeft_0"+(i+1)+".png"));
	     }
	     for(int i=0;i<2;i++){
	    	 System.out.println("images/LinkBack_0"+(i+1)+".png");
	     up[i] = ImageIO.read(new File("images/LinkBack_0"+(i+1)+".png"));
	     }
	     for(int i=0;i<2;i++){
	    	 System.out.println("images/LinkRight_0"+(i+1)+".png");
	     right[i] = ImageIO.read(new File("images/LinkRight_0"+(i+1)+".png"));
	     }
	stab[0]=ImageIO.read(new File("images/StabDown.png"));
	stab[1]=ImageIO.read(new File("images/StabUp.png"));
	stab[2]=ImageIO.read(new File("images/StabRight.png"));
	stab[3]=ImageIO.read(new File("images/StabLeft.png"));
 }catch (IOException e)
 {
   e.printStackTrace();
}

}