something that calculate score in fuction of time.

v00d0v00d0 Member Posts: 143
edited October 2012 in Working with GS (Mac)
Hi guys, i looking for your help. I'm creating a game where an actor have to kill enemies in a sort of puzzle. I need to caculate the score in function of the time that i personally set for each level. for example: at level 1 i've 60 second to kill 5 enemies so i should create a logic function that calculate for each second the score because if i complete the level in 50 second i've a certain score if in 30 an other one and so on. Anyone can help with this?

Comments

  • carlblanchetcarlblanchet Member Posts: 755
    edited October 2012
    Something you could do is start your score at lets say 6000, and for 60 seconds, every 1 second that goes by, it decreases the score by 50, therefor the longer it takes to complete the lvl, the less the player's score will be.
Sign In or Register to comment.