a save mechanic like when you turn off the game you would be in the last place you were in the game or something like that so you could save progress. if you know how to make one of these can you show me a piece of code that makes that happen?
5 Likes
Just save the players x and y with settings blocks
2 Likes
Yes! There is an extension in makecode library called âSettings Blocksâ. There are more in-depth versions elsewhere, but only this is necessary for most things. Basically, the blocks keep track of numbers or number arrays forever, even if the script is stopped and then run again, or refreshed! You can of course, delete all data too. There is also a handy âif data of name ââ existsâ block to set all variables to 0 if you havenât played before. Example:
3 Likes
I believe this is what you need. It is an improved version of the settings extension that allows you to save more than just numbers.
1 Like