App Closed- High Score Not Saving (or Loading?)
mattybou
Member, PRO Posts: 5
Help!
I have two different game modes, one with a timer and one without a timer. The version with a timer is saving and loading just fine. When the app is terminated and closed it loads itself without a problem. The version with a timer is not saving or loading. I believe it is having an issue loading because it will save as long as the app isn't terminated. If the app isn't closed then it will save. The code is below and I cannot figure out why it won't cooperate.
Thanks in advance.
Comments
What is the second attribute that's a condition of the main rule in the first screen shot? It starts "self.My Ti..."
The first thing I'd check is if that's preventing the rule from triggering. Is the rule definitely triggering? Try sticking a Log Debugging Statement in there and see if anything shows up in the Debug window.
Next I'd check that the instance of the Splash actor that you've dragged onto the game screen isn't accidentally unlocked.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
I deleted the main rule and it had no impact. The debugging statement is just showing the score total.
If the debugging statement is returning correctly, the problem is most likely in the loading of the attribute. Try adding the debugging statement directly after the load attribute.
Other things worth checking, even if they are unlikely:
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support