I want to add a really simple score system to my game. When I kill and enemy, he drops a point. I pick it up, and my score climbs.
Now, the scripting to get this done I can do fine myself.
But what I do need help with though, is some hints to get started on how I can make a simple text GUI that updates my score as it builds.
Im kinda new to unity, and never been doing any text GUI before.
Can someone help me get started please?
Some rough untested Javascript:
var scoreText:GUIText;
var score:int;
function AddScore (value:int) {
score += value;
scoreText.text = "" + score;
}
I cant get that code to work…?
Maybe im too noob…
Anyone got some good tutorials exsplaining basic text GUI?
I added that code onto an empty game object, and I set the score to 50. But when I run the game, I dont see any text on screen…
Did you create at least a GUIText component on a game Object, and define the scoreText variable value as the GUIText created ?
I got it working, thanks to the link you sent me 
And I sent you a prvt msg, if you dont mind reading it 