Record Low Score

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!

Comments

  • DeadlySeriousMediaDeadlySeriousMedia ArizonaMember Posts: 838
    if
    high score is greater than current score
    then
    change high score to current score.
  • UtopianGamesUtopianGames Member Posts: 5,692
    edited September 2013
    Like DSM said but you need if score < high score as your doing it lowest shots is better.

    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.
  • Catapult2014Catapult2014 Member, PRO Posts: 6
    DeepBlueApps - A demo would be awesome if you have the time. I think I get what you're saying and it makes sense, but a demo of its implementation would be great so I could see where things go and what not.

    Thanks!
  • evertevert Member Posts: 266
    Hey, have you fixed the problem?
    I'm having the same problem at the moment
Sign In or Register to comment.