public void tick(){
		if (System.currentTimeMillis() >= targetTime && animate) {
			index++;
			now = System.currentTimeMillis();
			targetTime = now + miliSeconds;
			if(index>animImages.length-1){
				index = 0;
			}
		}
	}