Highscore Question
Games4life
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
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
Here is the rule for highscore loader
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
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
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.
@tatiang Is there anything that can be done?
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
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
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.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Ah yes, thanks very much!