Highscore Saving Problem

0belisk0belisk PRO Posts: 189
edited November -1 in Working with GS (Mac)
for some reason my highscore isnt saving on my game, it worked fine on my previous game, and ive just copied over the stuff i used last time but obviously changed it to make it relevant, the only difference is, my new game is about getting the lowest score, not the highest.

everytime i play the game, it always saves the highscore as 0 when say for example my score was actually 50. i thought i could tackle this by making the highscore start at 9999, and say if its equal to 9999, display N/A to show the player doesnt have a highscore yet, then once they hit a score under 9999 which is 100% impossible not to, change the highscore to the players score.

but for some reason everytime its still displaying the highscore as 0. i am saving the attribute and loading it, yet still get this, any ideas? is there something else im supposed to be doing when making a backwards highscore?

thanks

Comments

  • morphinegamingmachinemorphinegamingmachine Member, PRO Posts: 449
    if you just copied the rules are for another one where it takes the highest one did you switch < to >?
  • 0belisk0belisk PRO Posts: 189
    when i say copied i mean i looked at how i did it last time and just replicated it, i didnt actually drag it over from one project to another, but yeah i changed it from "higher than" to "lower than".
  • COBGamesCOBGames Member Posts: 114
    remember for load and save attributes you can't hit the "e" button to type in your key name. you just have to type it in the box.
  • 0belisk0belisk PRO Posts: 189
    just double checked i hadnt made that mistake COB, and i havent, its still occuring :/
  • 0belisk0belisk PRO Posts: 189
    any idea guys? i dont understand what the problem is :/ , my last highscores worked fine.

    Highscore Actor:

    Load attribute

    Key: Hi - game.Highscore

    Display Text:

    game.Highscore

    End Score Actor:

    Rule

    If game.End Score is lower than game.Highscore

    Change attribute

    game.Highscore to game.End Score

    Save attribute

    Key: Hi - game.Highscore

    but when it goes back to the menu, the highscore still hasnt changed.

    FYI: Yes its supposed to be lower than, objective is to get the lowest time/score. The highscore starts at 99999, but displays as N/A when the value is 99999, and will display the player highscore when its lower than 99998 which will always happen.

    however after every play it still says N/A, when means the highscore isnt changing from its original value, rather not saving, or not loading...
  • 0belisk0belisk PRO Posts: 189
    bump..
  • 0belisk0belisk PRO Posts: 189
    not to worry, deleted everything and re-did it, and now its magically worked, lol
Sign In or Register to comment.