Search Unity

A game score board

Discussion in 'Multiplayer' started by Rakdos, Jul 31, 2009.

  1. Rakdos

    Rakdos

    Joined:
    Jun 4, 2009
    Posts:
    34
    Hi !

    I will finish my first Networking game, but something is missing : the game score board.
    I want to make a little box with inside the Players and their kills/deaths, but i don't know how to do it
    can you help me please ? :)
     
  2. mayekol

    mayekol

    Joined:
    Oct 23, 2007
    Posts:
    115
    Are you looking at doing some sort of GUI?

    Code (csharp):
    1.  
    2.  
    3. int deaths = 0;
    4. int kills = 0;
    5.  
    6. void OnGUI()
    7. {
    8.    GUI.Label(new Rect(0f, 0f, 100f, 100f), "Deaths: " + deaths + " Kills: " + kills);
    9.  
    10. }
    11.  
    12.  
    You should probably check out the GUI section on the Unity Manual, and there are some examples on the wiki http://www.unifycommunity.com/wiki/index.php?title=Scripts
     
  3. Rakdos

    Rakdos

    Joined:
    Jun 4, 2009
    Posts:
    34
    yes, but i want to do that the others players can see the others scores, i am good with gui section ;)
     
  4. LukeB

    LukeB

    Joined:
    Aug 8, 2009
    Posts:
    88