I'm working on a game where your final score is based on the amount of deaths accumulated over the course of the game. What would be the best way to calculate the score without it being too punishing? I don't want it to ever go below 0.
I tried using this formula:
round(1 / (Amount of Deaths + 1) * 10000)
It ended up returning too steep consequences for the deaths. Help, please?
Offline
so what sort of penalty per death did you have in mind?
the formula you've used is a reciprocal function and isn't linear so will penalise the first death by halving your score, subsequent deaths won't penalise you quite so much.
Offline
Ratty1967UK wrote:
so what sort of penalty per death did you have in mind?
the formula you've used is a reciprocal function and isn't linear so will penalise the first death by halving your score, subsequent deaths won't penalise you quite so much.
I want a linear function that calculates the score. The problem with doing that was getting a negative score if you had a sufficient number of deaths.
Offline
JNet wrote:
Ratty1967UK wrote:
so what sort of penalty per death did you have in mind?
the formula you've used is a reciprocal function and isn't linear so will penalise the first death by halving your score, subsequent deaths won't penalise you quite so much.I want a linear function that calculates the score. The problem with doing that was getting a negative score if you had a sufficient number of deaths.
You could make it : if score is less than 0, set score to zero.
Offline