Saving lowest Score

Hi there

I am developing a game that is judged by time so the aim is to do it as quickly as possible and I want to save the quickest score so that they can see what they want to beat. I have games that save the highest score but can't seem to work out how to save the lowest score. Any ideas?

Thanks people

Comments

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    Well in saving a high score you normally do something like this right?

    If new score is > high score then high score = new score

    So reverse that and say:

    if new score is < lowest score then lowest score = new score

  • zamboni77zamboni77 Member Posts: 40

    is there a way to set the bestscore integer to not be 0? Thank you for your help

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    When you set up an Integer Attribute you can set it to any starting value you want in the Attribute Editor. Or of course you can use a Change Attribute Behavior anytime in your game to set it to a new value as well.

  • zamboni77zamboni77 Member Posts: 40

    thats great thank you for your help

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    Your welcome

Sign In or Register to comment.