Final score based on star collected and time , how?

POMPOM Member Posts: 2,599
edited November -1 in Working with GS (Mac)
Hey there ,
Im working on the scoring system for my game .
So i finished the "Star collecting" system , and i have also a time system that tells how long it took the player to finish , (in seconds).
Now i would like to make a final score - integer - as a result of this 2 attributes , so lets say every star gives the player 1000 points , thats fine , but what about the time?
I want it so - the faster the player finished the level the higher the score,
Any video tutorials on this?
Or any suggestions from you guys?

Please help.

Roy.

Comments

  • AppsRacKAppsRacK Member Posts: 346
    You could set a maximum time lets say 120 seconds and just deduct the players actual time. Then multiply that value to whatever score multiplier you want then add the star score value to get the final score.

    example;

    StarScore = 2star*1000 = 2000
    TimeScore = [(MaxValue 120seconds) - (Actual player Time 40 seconds)] * (score factor 100) = 8000
    Final Score = 10000

    if the player is fast

    StarScore = 2star*1000 = 2000
    TimeScore = [(MaxValue 120seconds) - (Actual player Time 10 seconds)] * (score factor 100) = 11000
    Final Score = 13000

    There might be other way but if it was me i'll approach it like this.

    :)
  • POMPOM Member Posts: 2,599
    Ok thats sounds reasonable, ill give it a try right away.

    Thanks mate

    Roy.
Sign In or Register to comment.