Resharing this as it now features scripted variables which makes it a *lot* more flexible. As an example, this is the save game format used in my Roller Coaster Builder project to save the node positions. Note that anything after a '#' is a comment. # This save code format is used to load/save # a variable number (4 to 67) of X, Y and Z # coordinates, all between the values of # -255 and 255 # # number of nodes to load/save integer min 4 max 67 # # assign that value into a variable assign nodeCount # # Load/save all X coordinates integer min -255 max 255 array nodeCount # # Load/save all Y coordinates integer min -255 max 255 array nodeCount # # Load/save all Z coordinates integer min -90 max 90 array nodeCount # # add check for incorrect save codes crc
This toolkit contains a sprite to add full load/save functionality to any project! Instructions are in forum here - https://scratch.mit.edu/discuss/topic/365488/ - please post any suggestions, problems, issues or help requests to that forum. The reason the project mentions the use of "username" is because the project can optionally make save codes that only work for the current user (as seen in my Band Hero project). This project isn't a game. When you press the green flag you'll see an example of creating a save code and of loading from a save code. The project is something that I wrote (and am slowly building extra features on as I need them) for myself and thought other people might find useful. I could be wrong :) #toolkit #description(This is one of my most useful toolkits and one that I use in a lot of my own projects. It can create short save game codes for any game and also convert those save codes back into data. Using this has saved me a lot of time in numerous projects.)