How do I make save and load games?

I’m starting off with something small. Just a simple platformer game.

There’s tutorials on youtube on how to save games, but they’re like 2-3 years old. They’re outdated. Whatever used to work isn’t working.

Have you tried the Save/Load thread from Zero here

Hi Jamestown02 and welcome. It’s new, but I’m using this and loving it:

3 Likes

I’ve still not tried it yet …have you noticed any reasons not to use it yet? I need to have a play around with it so what’s possible!

I’ve been able to delete a lot of save events, structure variables, complicated transitions with json stuff. The only thing it can’t do (yet) that affects me is save the state of custom object children but it can be done manually. The first time I used it, it was a wow moment after so many headaches with the old system.

Two and a half months later
Update, after quite a bit of trouble solving various problems that came up from using save states, I’m going back to using the standard json save/load system because save states seems to be incompatible with game updates that add new objects, re-name objects etc. The save state seems not to allow for new content to be added. It’s possible some loading events could do this but I’m not interested in pursuing a maybe workaround solution.

1 Like

I’m not suggesting to use it for some reasons i posted here.

There’s bound to be a few bugs still. I guess if you’re saving the state of everything manually then it’s easier to solve the problems that you encounter. I had a quick look at the actions and it seems quite flexible. Gdevelop did need this …as most of gdevelop is very straight forward for new users - and then they had to get to grips with the storage system and finding GlobalVar to JSON etc when saving.

I solved it. I went through one of the premade save & load templates.
Thank you.