public Animation(String name, int[] frames,long[] timestamps)
	{
		this.animationName = name;
		this.numFrames=timestamps.length;
		this.startFrameInTexture=0;
		this.timestamps=timestamps.clone();
		long totTime=0;
		for(long i : timestamps)
			totTime+=i;
		this.totalTime=totTime;
		this.frames=frames.clone();
	}