public void fade(Graphics g)
	{
		if(fadeActive == true)
		{
			//System.out.println(count);

			Image fadeFrame = fade[count];
			g.drawImage(fadeFrame,0,0,this);

			if(count == 9)
			{
				toggle = true;
				
				if(changeScreen == true)
				{
					if(screenUp == true)
					{
						screenNumber++;
						changeScreen = false;
						//System.out.println("UP");
					}
					else
					{
						screenNumber--;
						changeScreen = false;
						//System.out.println("down");
					}
				}
				
				if(newRoom == true)
				{
					room.constructRoom();
					//enemy = new DungeonEnemy(1);
					newRoom = false;
				}
				//System.out.println("SCREEN NUMBER: " + screenNumber);
			}

			if(toggle == false)
			{
				count++;
			}
			else
			{
				count--;
			}

			if(count == -1)
			{
				fadeActive = false;
				toggle = false;
				count = 0;
			}
		}
	
	}