Search Unity

Help with my main menu

Discussion in '2D' started by midnightspro, Dec 15, 2014.

  1. midnightspro

    midnightspro

    Joined:
    Dec 15, 2014
    Posts:
    2
    So I am working on a little Halo shooter for me and my friends and I want a nice looking menu that functions correctly.
    Now I am still kinda new to unity and here is what I want to do.
    Now when i click Campaign it loads my mission when I exit it closes the game, but I want to be able to click Multiplayer, service record, and settings.
    I want multiplayer to load to a new plane (creating the menu with a plane) with a new background and new options like Server brower, custom games, friends.
    I want service record to load a new plane also so i can create it what I want it to look like :)
    I want settings to be able to load a new plane and for me to create a video settings audio settings and graphic settings.

    Here is the script, all it does is play the menu background music load my mission through hitting campaign and clicking exit to end the game.

    var isQuit=false;
    var sound : AudioClip;

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

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

    function OnMouseUp(){
    //is this quit
    if (isQuit==true) {
    //quit the game
    Application.Quit();
    }
    else {
    //load level
    Application.LoadLevel(1);
    }
    }

    function Update(){
    //quit game if escape key is pressed
    if (Input.GetKey(KeyCode.Escape)) { Application.Quit();
    }
    }

    Thanks for the help if you guys do help me :)
     

    Attached Files:

    • Menu.PNG
      Menu.PNG
      File size:
      953.7 KB
      Views:
      798
  2. CalaveraX

    CalaveraX

    Joined:
    Jul 11, 2013
    Posts:
    143
    you should look for the new unity gui that comes with unity 4.6, and the "load multiplayer" i guess y you want to host a multiplayer game or search, you should load a scene with photom server or some server like that one.

    Cheers
     
  3. midnightspro

    midnightspro

    Joined:
    Dec 15, 2014
    Posts:
    2
    Thank you little late but thank you :)