How do I fix my save system?

0 favourites
  • 6 posts
From the Asset Store
Match the similar cards with each other and free all animals!
  • Hi folks, confused newbie game dev here again.

    I made a rough 2d platformer demo, and have been steadily adding features like enemies, health variables, and recently- arrays. I used these so that I could have a dialogue/text system where info pops up when you collide with a computer, and it has seemed to work just fine.

    Only problem is that I think it broke my save-system; which was a very simple "Press E whilst overlapping the save station" process. Now, it neither saves my game nor loads the previous ones.

    Not super sure how to go about fixing this. Is there something I don't understand about saving?

  • We'd have to see it, can't really guess the problem here.

  • Image of my code.

    And my c3 file will be uploaded as soon as I recall how to actually do that. Thank you.

  • Found in another post that I can use F12 to see a more detailed debug sorta menu, and as far as I can tell it says that the save files simply do not exist.

    Not sure why, and not sure why my method for triggering a save no longer works. It did just a few days ago... hmm.

    I don't understand how something like a save system can break so easily, and it's a mite worrisome. It worked fine before I added in AJAX and arrays, following a tutorial. I can get it to save now, by just making it dependent on a button press alone- but when I go to load, it tells me there are no save files present.

    Any ideas? I'd love some help on this.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • It looks like it should work. Not sure what the array is for but that's separate. Maybe your browser is clearing save data. Does it set the health as should be done after save complete?

  • Okay, well now it works just fine on a simple keyboard press- and when I return to my start screen I can continue just fine; though my missile variable doesn't get filled up. Aside from that, it works.

    I didn't really change anything from 2 hours ago. Health and such only changes after save is complete, same as it was.

    Weird. So, an array and all that can't affect the event sheet? Good to know!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)