Main menu (418717)

hey guys i am making a main menu but i am having a problem
the problem is that i can only load the first level and quit the game but i want to be able to load my controls here is the script

var isQuitButton = false;
var isLoadButtoon = false;
var isControlButton = false;

function OnMouseEnter()
{
	//change the color of the text
	renderer.material.color = Color.red;
}


function OnMouseExit()
{
	//change the color of the text
	renderer.material.color = Color.white;
}

function OnMouseUp()
{
	//are we dealing with a Quit Button?
	if( isQuitButton )
	{
		//quit the game
		Application.Quit();
	}
	{
	//are we dealing with a Laod Button?
	if( isLoadButton )
	{
		//load level	
		Application.LoadLevel(1);
	}
	//are we dealing with a Control Button?
	if( isControlButton )
	{
		//load level
		Application.LoadLevel(2);
	}
}

if some on could help me i would really appreciate it :smile: :smile:
if you need more information just message me or leave a

Use [ code ] tags when posting code (that will preserve the formatting, and you won’t have to add the dashes as you’re doing currently).

yea i just figured that out

i think it is becouse you spelled load wrong?

some times you typed laod and other time you type load

no that still didint work when i hit controls it loads the level and if i say start game it loads the same level

can anyone help me

can i see the scipt of the buttons?

it is the code up top

well i cant upload my main menu or my control scenes :cry:

here is my screen shot

You’ve got n extra { just before the comment //are we dealing with the load button

ok i have some errors that if i fix new ones appear

There are most basic syntax errors. Look at the first error, and search for a wrong symbol.

Ok, This works on mine, so if you do a copy and past it should fix it.

var isQuitButton = false; 
var isLoadButton = false; 
var isControlButton = false; 

function OnMouseEnter() 
{ 
   //change the color of the text 
   renderer.material.color = Color.red; 
} 


function OnMouseExit() 
{ 
   //change the color of the text 
   renderer.material.color = Color.white; 
} 

function OnMouseUp() 
{ 
   //are we dealing with a Quit Button? 
   if( isQuitButton ) 
   { 
      //quit the game 
      Application.Quit(); 
   } 
      //are we dealing with a Laod Button? 
   if( isLoadButton ) 
   { 
      //load level    
      Application.LoadLevel(1); 
   } 
   //are we dealing with a Control Button? 
   if( isControlButton ) 
   { 
      //load level 
      Application.LoadLevel(2); 
   } 
}

andy_h thank you so much for you help