Question: How To Add Bonus Points Based on Time Remaining
![dazzleme](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
Hello fellow salad makers, I couldn't find the exact answer I was looking for in the forums or on YouTube, so am hoping this post will result in some advice. What I would like to do is add bonus points to the score for each second that remains once the timer stops; I would appreciate your input on how to best do this.
In my game, I've got a timer set to count down from 60 seconds. If the objective is accomplished, the timer stops. I've set up a score attribute so that for each milestone reached during the 60 seconds, the score increases. I've also got an attribute for the high score.
I got "close" to accomplishing what I was trying to do, but it wasn't fully completely successful and I think the implementation wasn't as clean as it could have been. Any suggestions would be greatly appreciated - or even pointing me to a YouTube video or thread in the forums. I searched both, but am not too prideful to admit I could have easily missed the right one.
In my game, I've got a timer set to count down from 60 seconds. If the objective is accomplished, the timer stops. I've set up a score attribute so that for each milestone reached during the 60 seconds, the score increases. I've also got an attribute for the high score.
I got "close" to accomplishing what I was trying to do, but it wasn't fully completely successful and I think the implementation wasn't as clean as it could have been. Any suggestions would be greatly appreciated - or even pointing me to a YouTube video or thread in the forums. I searched both, but am not too prideful to admit I could have easily missed the right one.
![;) ;)](http://forums.gamesalad.com/plugins/emojiextender/emoji/twitter/wink.png)
Comments
- Jeff
For those who may search and find this thread down the road, here's how I implemented Jeff's advice.
In an actor I named "bonus_score", I set up the following rule:
When Attribute "game.stopClock" is "true"
Constrain Attribute: "game.Bonus_score" To: "game.timer*100"