Need help with save system

ok so you might know I’m making a game called banana bonanza so I’ve bin trying to make a save system so when u die you don’t start all the way back to the first level but I cant make a save system so please do what you can. the link: banana bonanza

2 Likes
S0m3randomguy/bettersettings

Is the extension. Put a -if not- setting with name ___ exists then set setting with name ___ to string/number. Like this:

2 Likes

You could simply make a bunch of tilemaps, and when say level 1 is loaded Set levelstat to 1 and so on. That way if you die it will take you wherever your levelstat is.

1 Like

can you please try to change the code to have a save system or something and giving me the code?

2 Likes

Here is what I came up with (no idea if it works)

2 Likes

ok so I added a main menu so umm now I’m back to trying to get levels to load when the play! botton is clicked and making save system so pls help any way possible!:grin: and I might figure this out on my own soon but I will notify u if I do or don’t so here’s the code now yeah umm more problemos YAYYYYY

This should do it. The description is hilarious by the way :laughing:

1 Like
sargedev/bettersettings

sarge changed his GitHub username

1 Like

I think it works ima do some super coding by the way also yeah I tried making the description as dumb as posseble

aww man the levels wont load @xInsqne1 could you help this sry its just problem after problem and I cant test if the save system you came up with works cause the levels wont load sadley could you help agian? its fine if you cant lots of people are busy working on there own things

Sure! I’m not a very busy person lol. Send me the link with all the levels and I can whip something up for you!

1 Like

thanks! I’m a really lazy coder lol here’s the link help meeeeeeeeeeeeeeee

I didn’t know that. The old link still works for me.

Alrighty here it is @1978monkeynutze ! Feel free to change the spawn locations, but I have added your save system. (and checked that it works)

Good luck on the rest of this project! Just holler if you ever need some more help. :grinning_face_with_smiling_eyes:

2 Likes

thanks

also where are the spawn locations or where it saves at?

also will it save if I leave the game?

if you can can you pls edit the code so when you leave the game its still saved to the level u are on?

Try getting to the second level then jump into lava to test.

If you mean if you restart, then I don’t believe so… but I’m 90% positive its possible. I don’t think I know how so maybe ask some others if it’s needed for your game. The save locations are in the “What level?” Function.