private synchronized void addScene(Sprite sprite, int t){
		if(t==-1){
			totalTime=-1;
		}
		else
			totalTime += t;
		
		Sprite[] temp = new Sprite[list.length+1];
		for(int i=0; i<list.length; i++)
			temp[i] = list[i];
		temp[list.length] = sprite;
		list = temp;
		
		int[] tempTime = new int[spriteTime.length+1];
		for(int i=0; i<spriteTime.length; i++)
			tempTime[i] = spriteTime[i];
		tempTime[spriteTime.length] = t;
		spriteTime = tempTime;
	}