Hey all having some trouble figuring out a formula for scoring a level in my game.
The game is time based but there is no limited time to each level. So if the player takes longer with a level their score will be lower.
There are a few other factors that need to add to the score but these can just be added afterwards.
Any ideas?
You can try something like this:
- setup float values like:
1st place: under 60 (1min)
2nd place: under 90 (1.5min)
3rd place…
- at the end of the level check the time it got the player to finish the level and if its less than 1min give him the 1st place or 3star or whatever you desire…
- if its not less than 1min than it keeps checking until it finds a value (that you set up earlier) that is less
Hope this idea helps :))