Highscore Question

Games4lifeGames4life Member, PRO Posts: 279

Hi GS Community,

My app is now BETA! However the highscore only saves for one day! How do I change so that it is permanent?

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    How are you saving the high score? If you use a Save Attribute behavior and Load Attribute behavior or a Save Table behavior, it saves the data indefinitely. If your data is only saving for a day, I'm guessing your rules are causing that. Post screenshots or otherwise explain how you have it set up.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • Games4lifeGames4life Member, PRO Posts: 279

    @tatiang said:
    How are you saving the high score? If you use a Save Attribute behavior and Load Attribute behavior or a Save Table behavior, it saves the data indefinitely. If your data is only saving for a day, I'm guessing your rules are causing that. Post screenshots or otherwise explain how you have it set up.

    Here is the rule for highscore loader

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Okay, that looks fine. And more importantly, how are you loading the attribute?

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • Games4lifeGames4life Member, PRO Posts: 279

    @tatiang said:
    Okay, that looks fine. And more importantly, how are you loading the attribute?

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Hmm, that looks pretty straightforward, too. It should save and load properly. So you're saying that you can get a high score, quit completely out of the app on a mobile device, wait 24 (or 25) hours, and then the high score is gone? Does it reset to 0?

    I've never heard of an attribute only saving for a day so I'm a little baffled.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • Games4lifeGames4life Member, PRO Posts: 279

    @tatiang said:
    Hmm, that looks pretty straightforward, too. It should save and load properly. So you're saying that you can get a high score, quit completely out of the app on a mobile device, wait 24 (or 25) hours, and then the high score is gone? Does it reset to 0?

    I've never heard of an attribute only saving for a day so I'm a little baffled.

    Yes, it resets back to zero. Its quite stranger. I close out of the app with a new highscore. Wait until the clock strikes 12 AM and now its back to 0.

  • Games4lifeGames4life Member, PRO Posts: 279

    @Games4life said:

    @tatiang said:
    Hmm, that looks pretty straightforward, too. It should save and load properly. So you're saying that you can get a high score, quit completely out of the app on a mobile device, wait 24 (or 25) hours, and then the high score is gone? Does it reset to 0?

    I've never heard of an attribute only saving for a day so I'm a little baffled.

    Yes, it resets back to zero. Its quite strange. I close out of the app with a new highscore. Wait until the clock strikes 12 AM and now its back to 0.

  • Games4lifeGames4life Member, PRO Posts: 279

    @tatiang Is there anything that can be done?

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Unless someone else can verify this issue, I'd say there's something about your project file you're not sharing (I'm sure unintentionally) that is causing the problem. Double-check that the actor(s) doing the saving and loading aren't unlocked instances with their own rules, narrow the problem down by creating a new blank scene with ONLY those actors and then test again, etc. Or post your project file so we can see everything and possibly catch the cause of this.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • Games4lifeGames4life Member, PRO Posts: 279

    @tatiang said:
    Unless someone else can verify this issue, I'd say there's something about your project file you're not sharing (I'm sure unintentionally) that is causing the problem. Double-check that the actor(s) doing the saving and loading aren't unlocked instances with their own rules, narrow the problem down by creating a new blank scene with ONLY those actors and then test again, etc. Or post your project file so we can see everything and possibly catch the cause of this.

    I actually think I forgot to add in the actual high score loader itself onto the screen, so do you think that is the problem?

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    @Games4life said:
    I actually think I forgot to add in the actual high score loader itself onto the screen, so do you think that is the problem?

    Yes.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922

    Anything you need reloaded must happen on the first scene as when the game quits in the background it will relaunch and set to default. So on the first scene load it all back in.

  • Games4lifeGames4life Member, PRO Posts: 279

    @tatiang said:

    @Games4life said:
    I actually think I forgot to add in the actual high score loader itself onto the screen, so do you think that is the problem?

    Yes.

    @Lost_Oasis_Games said:
    Anything you need reloaded must happen on the first scene as when the game quits in the background it will relaunch and set to default. So on the first scene load it all back in.

    Ah yes, thanks very much!

Sign In or Register to comment.