App Closed- High Score Not Saving (or Loading?)

mattyboumattybou 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

  • ArmellineArmelline Member, PRO Posts: 5,369
    edited June 2014

    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.

  • mattyboumattybou Member, PRO Posts: 5

    I deleted the main rule and it had no impact. The debugging statement is just showing the score total.

  • ArmellineArmelline Member, PRO Posts: 5,369

    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:

    • Check that you haven't entered either "c" as a function rather than directly into the box
    • Check that the Splash actor is actually in the scene
    • Check that the Splash actor isn't unlocked
    • Check that you're getting the popups correctly for the ad and platform login
Sign In or Register to comment.