- Home /
How would I make a score board or how many enemies I killed?
I am making a space shooter with high scores, your score, and score board but I have NO CLUE how to script them. Help?
That's too broad a question for here I'm afraid you won't get much of a response. Have you worked through one of the tutorials?
Answer by Develogamer · Jun 15, 2012 at 10:01 AM
You can do a simple score board with any of the GUI features, GUIArea, GUITextArea, GUILabel and then customize it with a GUIStyle
for example:
void OnGUI()
{
GUI.TextArea(new Rect(225, 580, 600, 200), "Enemies Killed: " + enemiesKilled.ToString(), fillStyle);
}
Also see the GUI scripting guide: http://unity3d.com/support/documentation/Components/GUI%20Scripting%20Guide.html
but like whydoidoit said, its a bit vague what you want to do so if you could specify we can try and help you further.
hope this helped
Your answer
Follow this Question
Related Questions
A node in a childnode? 1 Answer
Whats The difference? 1 Answer
Natural Selection type Alterations of Geometry 1 Answer
Creating a 3D simulator 1 Answer
3D ^ Custom GUIText/Label or Making a Score System without using GUI? 0 Answers