ScratchData LogoScratchData
Back to dackman's profile

Online Save System

DAdackman•Created October 17, 2015
Online Save System
21
16
721 views
View on Scratch

Instructions

There really isn't much to do in this project, it's just another asset. This Online Save System can hold up to 2 variables per user, both with the setting of 0 through 9 or 1 variable with the settings of 0 through 99. If you were to specially tweak it, you could make it so that you could have an infinite amount of variables per user. The Saved Data variable consists of everyone's data, setup so that the first 40 digits of a single set of data is the name of the user, shortened to exclude special characters such as + and ", and the last 2 digits at the end the user's data. Once again, it can be set to be larger to store more data. Overall, one person's data is 42 digits long. When it says it's diagnosing the network, it's checking if it's corrupted, like if the amount of digits in the Saved Data variable is proportional to 42, which it should be. When it is searching for your data it first has to create your username into one without any special characters, then it scans through the existing data to see if your username matches with anything. If it does, it will set the Target User ID variable to where your data is in the list. When it does this, it should say Getting Your Data. If it didn't find your data then it will convert your username into a 40 digit number, and add the value 01 to the end, then adds it into the Saved Data variable, while also marking where it will be in the list as Target User ID. Also, when ripping the Online Save System to use for yourself, please remember to credit and set the Saved Data variable to null( or nil, if you prefer. But not literally, just set it to nothing. Nothing at all).

Project Details

Project ID83047120
CreatedOctober 17, 2015
Last ModifiedOctober 24, 2015
SharedOctober 24, 2015
Visibilityvisible
CommentsAllowed