Hi there!
First of all, I have really tried to figure this out on my own without any luck so therefor I ask you guys. In my latest game, I have a variable that starts at 200 and then subtract 1 each second. If you finish the level in 150 seconds then the variable is 50 (200 - 150) and then your score is 50. So the faster you finish the level the higher score you'll get.
Example:
First level finished in 150 seconds = 50 points.
Second level finish in 100 seconds = 100 points + 50 points from the previous level.
I can figure out how to achieve this with a new variable for each level but that seems like overkill, I'm sure there's an easier way that I haven't figured out yet.
So, how can I achieve this without having 50 different variables (50 levels)?
Thanks in advance,
Tommy / tomologames.com