Record Low Score
Catapult2014
Member, PRO Posts: 6
I'm creating a shoot at target type game and it's coming along pretty well, but there's an aspect to the game that would really bump up the level of quality and I'm having trouble figuring out how to program it.
The goal of the game is to hit the target, I want to make it so each level records the number of shots you take to hit it and to show the best score (least number of shots to hit the target). So if you play the level once and it takes you five shots to hit the target, then you play it again and it only takes three, it will record the 3 and show that as the best score when you're on that level.
I don't think this is a super complex problem, I'm just having trouble figuring it out so if anyone has any ideas that would be awesome!
Thanks GameSalad community, you're all the best!
The goal of the game is to hit the target, I want to make it so each level records the number of shots you take to hit it and to show the best score (least number of shots to hit the target). So if you play the level once and it takes you five shots to hit the target, then you play it again and it only takes three, it will record the 3 and show that as the best score when you're on that level.
I don't think this is a super complex problem, I'm just having trouble figuring it out so if anyone has any ideas that would be awesome!
Thanks GameSalad community, you're all the best!
Comments
high score is greater than current score
then
change high score to current score.
You would also need to set the high score to a high number say 100.
I'm away from the mac ATM but can do oh a quick demo in the morning if your still struggling.
Darren.
Thanks!
I'm having the same problem at the moment
New game!: [Snake Rage]https://itunes.apple.com/us/app/snake-rage/id1463859909