public void fill(Graphics2D g){
		if(canMove)doMovement();
		if(relative){
			centerX=(img.getWidth()/2)-(Display.player.loc.getX()/relXT);
			centerY=(img.getHeight()/2)-(Display.player.loc.getY()/relYT);
		}
		testTouching();
		if(textured){
			int xl = (int) Math.round(centerX-(width/2));
			int yl = (int) Math.round(centerY-(height/2));
			g.drawImage(img,(int)xl,(int)yl,xl+(int)width,yl+(int)height,0,0,(int)img.getWidth(),(int)img.getHeight(),null);
		}else{
			g.setColor(col);
			g.fill(getRect());
		}
		doDebug(g);
	}