Discuss Scratch

-ParrotXCoder-
Scratcher
3 posts

Is AutoSaving possible?

Hi i just had a thought for AutoSaving anyone know how to do it?

Not python obvs
Cool_Dude2022
Scratcher
100+ posts

Is AutoSaving possible?

-ParrotXCoder- wrote:

Hi i just had a thought for AutoSaving anyone know how to do it?

Not python obvs

Simple way, use someone else's code: https://scratch.mit.edu/projects/54370388/

Hard way, make it yourself: first, get the players stats, username, x & y coordinates, etc. Now, encode all of the items, to do this, convert every letter to a numerical value. If my username was abc123, then it would encode to 101112373839. You cannot use letters in cloud variables, so you have to use double digits so that they can decode later easily:

A = 10
B = 11
C = 12


After doing that, it's time to decode the message. At first, it would look something like this: 1039113737, then when you decode it would look like this a3b11. After decoding it, you should set the variables to their values that were in the decoded message.

Did I help you fix your problem? If so, please nominate my project to be featured!

If my code is used, credit is NOT required
NIKI-KOLCHAGOV
Scratcher
100+ posts

Is AutoSaving possible?

Well using cloud variables is not a good and reliable way to save someones data they might glitch and corrupt all the data or they might just not save at all and also the max storage for cloud variables is 2560 bytes ( numbers ) which sounds like a lot but when a username takes about 24 characters + x and y positions 8 + stats / score + 4 and adds up to about 38 characters for a person so you would be able to save 67 people's data but it would also be pretty hard to code for something that might break, glitch or not even work
Im not saying it will fail but im saying what has happened to me from experience there are some times where it works and sometimes it doesnt thats why its unreliable and a lot of people use save codes

The conclusion is that i dont recommend saving a lot of data in cloud variables

Last edited by NIKI-KOLCHAGOV (March 28, 2024 12:24:47)






Powered by DjangoBB