public synchronized void update(float increment){
		currentTime += increment;
		
		if(currentTime > totalDuration){
			wrapAnimation();
		}
		
		while(currentTime > frameEndTimes[currentFrameIndex]){
			currentFrameIndex++;
		}
	}