3-D Platform Tutorial StartmenuGUI script problem

I’m sure it’s something in this code that I’m doing wrong, seeing how I’m not a programmer, but the PDF that comes with the tutorial is so ambiguous as to what to do half the time.

The code that I have written for the GUISkin object defining a new backdrop is:

var gSkin : GUISkin; var backdrop : Texture2D; //our backdrop image goes in here. private var isLoading = false; //if true, we’ll display the “Loading…” message. function OnGUI() { if (gSkin) GUI.skin = gSkin; else Debug.Log(“StartMenuGUI: GUI Skin object missing!”); } var backgroundStyle : GUIStyle = new GUIStyle(); backgroundStyle.normal.background - backdrop; GUI.Label ( Rect((Screen.width - (Screen.height * 2)) * 0.75, 0, Screen.height * 2, Screen.height), “”, backgroundStyle); GUI.Label ( Rect( ( Screen.width/2)-197, 50, 400, 100), “Lerpz Escapes”, “mainMentuTitle”); function Update () { }

Is that “var backgroundStyle : GUIStyle…” in the wrong place?

Thanks in advance for helping a writer comppletely out of his element.

It seems you have some missplaced “}”.
Once I removed it, I don’t see why should have a problem with the following:

var gSkin : GUISkin; 

var backdrop : Texture2D; 
//our backdrop image goes in here. 

private var isLoading = false; 
//if true, we'll display the "Loading..." message. 

function OnGUI() 
{ 

	if (gSkin) 
		GUI.skin = gSkin; 
	else 
		Debug.Log("StartMenuGUI: GUI Skin object missing!"); 


	var backgroundStyle : GUIStyle = new GUIStyle();
	backgroundStyle.normal.background = backdrop; 

	GUI.Label ( Rect((Screen.width - (Screen.height * 2)) * 0.75, 0, Screen.height * 2, Screen.height), "", backgroundStyle);
	GUI.Label ( Rect( ( Screen.width/2)-197, 50, 400, 100), "Lerpz Escapes", "mainMentuTitle"); 

}