public void update() {

		if (delay == NONE)
			return;

		final long elapsed = (System.nanoTime() - startTime) / 1000000;

		if (elapsed > delay) {
			currentFrame++;
			startTime = System.nanoTime();
		}

		if (currentFrame == frames.length){
			currentFrame = 0;
			playedOnce = true;
		}

	}