public void setParameter(String paramname, int a){
			if(paramname == "Mat"){ mat = a;}
			if(paramname == "MirrX"){hoodx = a; if(mirror){setLocation(hoodx, hoody);}}
			if(paramname == "MirrY"){hoody = a;if(mirror){setLocation(hoodx, hoody);}}
			if(paramname == "InMode"){inmode = a; if(a == 2){ages = false; fades = false;}}
			if(paramname == "Xfact"){map.setParameter("Xfact", a);}
			}