Hello! I am creating a game. I have a problem with my Main Menu.
I have a simple script that loads a level when i press the “Start” GUI text, and it works.
My problem is that when i press the options or quit button, it loads the level that is assigned to “start”… I just want it to move my camera when i click on options. Not load level 1 (like start does).
PLEASE POST BELOW WITH YOUR SOLUTION!
I feel that the two scripts are interfering with eachother but IDK why.
The start script is on the start button. The option script is on the option button. Thanks. Please reply soon this is urgent.
Help?
heres my script :
“Options” script:
var Cam : Camera ;
function Start()
{
}
function Update()
{
if (Input.GetMouseButtonDown(0))
{
Cam.animation.Play("OptionAnim") ;
Cam.animation.wrapMode = WrapMode.ClampForever ;
}
}
“Start” script :
function Update()
{
if (Input.GetMouseButton(0))
{
Application.LoadLevel(“test”) ;
}
}