- Home /
How do I make an Angry Birds Style Scoring System?
I want to make a score system that shows a different score based on seconds.
if you have: 100 seconds remaining = 3 stars
50 seconds remaining = 2 stars
10< = 1 star with 0 seconds being 0 stars
The stars will be an image saved in the Assets.
thanks in advance Tremayne
Comment
Answer by fafase · Nov 25, 2013 at 11:45 AM
One way is to keep track of how much time has elapsed. But you want to stop that when pausing.
float timer = 60f;
void Update(){
if(pause)return;
if(gameOver){
CheckTime();
return;
}
timer -= Time.deltaTime;
}
void CheckTime(){
if(time >= 100) // Draw 3 stars
else if (time < 100 && time>= 50) //Draw 2 stars
// and so on
}
Your answer

Follow this Question
Related Questions
Multiple Cars not working 1 Answer
I made a better shader how do i fix[add _Shadow Strength]help???>Sorry that im asking for to much 1 Answer
Is there another way of counting Scores (points) instead of Colliding (destroying) 1 Answer
Saving a value if it is larger than the current value... 3 Answers