Hi guys I know there are a lot of questions about how to make a scoring system but this is going to be a little different because I need something else then what has already been answered.
What I need is a score system that when I have destroyed one of my targets I get points for doing so the way I destroy targets is by using a gun and shooting bullets at targets to destroy them. There are 2 types of targets one set of targets gives you 10 points and the other targets that are optional gives you 50 points I also need to be able to give points based on time so lets say depending on how many seconds are left give the player an extra 10 points per second; I would also like a system that takes points if you miss a target so lets say minus 10 points every time you miss. Basically I’m creating an FPS where the score is based of targets hit and time. Tbh I need this for my uni assignment and I’m just a little stumped and any help would be really useful so yeah please help. btw I have made a start on the code now I just need your help to finish it :).
// textfield to hold the score and score variable
private var textfield:GUIText;
private var score:int;
function Awake(){
textfield = GameObject.Find("GUI/ScoreCount").GetComponent(GUIText);
score = 0;
UpdateScoreText();
}
function UpdateScoreText(){
// update textfield with score
textfield.text = score.ToString();
}
so yeah please help becauase I’m so close to getting this finished and I just need a bit of help to finish this project of :).