I know about the built in settings extension and other simple “save state” extensions that people have made, but I was wondering if anyone has made a settings extension to save sprites or entire game states. I could do it with just integers, but it would be pretty confusing and sloppy (and I just don’t want to). If anyone’s wondering about the use for it, I’m making a tower defense game and want a way to restart the last round if you die, instead of having to completely restart every time. It’s not a huge deal, but it would be really nice to have an extension that could do it all for me.
You could use the better settings with two arrays of integers for position for each enemy, iterate through them and place them. Oh sorry, if you just want to restart the round, just have a level function and save level to a settings block. Then on game start if that block exists you load the level from the function. Tell me if this helps
sargedev/bettersettings type this into extension search bar
I’ve taken a look at sargedev’s better settings, but I don’t think it’s going to be any more useful than the built-in one. Also, BotWarrior, it’s the towers placed that I need to save, and they are going to have upgrades and such, so if I were to use integer arrays, I would need a good amount. Thanks for the help, though, and tell me if you have any better ideas.
Settings can have the name of the setting made using a join strings block. So, you could have a setting for how many towers, then create a setting for each tower. For each tower it would be like…
Let me make a mockup for you. This project places some random squares then saves their locations.
I know this isn’t very optimised or great code, tell me if you need more explanation.
Ok, I could understand that. This seems like a better way than what I was thinking of, which was having separate number array settings, one containing all the x values, another with the y values, so on and so on. Also I mainly code using javascript in case that has any extra features that blocks can’t supply (like the userconfig width/height stuff). Thanks for the help! I’ll share my results.