Discuss Scratch

FreshStudios
Scratcher
15 posts

Do Lists save automatically?

Do they act as cloud lists? If i wanted to make a username list for people who click a button on my game how would I go about doing that?
hotsaucehater
Scratcher
62 posts

Do Lists save automatically?

Scratch does not have cloud lists at the moment. If you want to save a list to the cloud, you would have to encode it into a string and put it into a cloud variable. Then you could create a decoder that parses the data in the cloud variable and puts it into the list. Keep in mind that you will need to update the list any time new data is added by the player or another player.
ShadowScizor
Scratcher
100+ posts

Do Lists save automatically?

Nope, list doesn't save data automatically, it just store a list of data similarly to a list of variables. To save any data, you will have to encode it into digits before it can be stored in the cloud variable, then decode it back from the cloud variable when needed. This is a good example to start off: https://scratch.mit.edu/projects/22268003/
_A_T_O_M_I_C_
Scratcher
6 posts

Do Lists save automatically?

Shamamama
--Explosion--
Scratcher
1000+ posts

Do Lists save automatically?

No. When you add an item to a list and then reload the page, unless when the flag is clicked you add certain items to the list it will be empty. But you can use cloud variables to encrypt data to a list
CWMO3
Scratcher
1 post

Do Lists save automatically?

Huh. So does the list have to be associated with a cloud variable to save into the cloud?

when green flag clicked
forever
replace item (Masterolson3 0 v) of [Cloud Data v] with (join (username) (join [ ] (☁ score)))
end

…or something like this. I'm too lazy to make the other blocks.

Last edited by CWMO3 (Sept. 14, 2020 18:00:34)

Cookiemousee
Scratcher
99 posts

Do Lists save automatically?

No, they do not act like cloud lists you would have to use cloud variables and al ist to make a cloud list.
codemann13
Scratcher
91 posts

Do Lists save automatically?

FreshStudios wrote:

Do they act as cloud lists? If i wanted to make a username list for people who click a button on my game how would I go about doing that?
define [Reset cloud variables]
delete (#) of ["your list"]
set [ # ] to [thing]

say [Nvm im to lazy to right the whole script :lol:]

send [https://scratch.mit.edu/projects/22268003]
codemann13
Scratcher
91 posts

Do Lists save automatically?

FreshStudios wrote:

Do they act as cloud lists? If i wanted to make a username list for people who click a button on my game how would I go about doing that?

smile :) for (5) secs

Last edited by codemann13 (Jan. 28, 2022 20:52:47)

kexy321
Scratcher
56 posts

Do Lists save automatically?

If you are talking about cloud lists then You can't, actually, it doesn't exist. If there were cloud lists the servers that store cloud variables should be… Bigger, I guess…
scratch___user12345
Scratcher
1000+ posts

Do Lists save automatically?

I made a cloud list project at https://scratch.mit.edu/projects/625707548/ the only downside is that the list resets when you reload
-ItsEric-
Scratcher
3 posts

Do Lists save automatically?

--Explosion-- wrote:

No. When you add an item to a list and then reload the page, unless when the flag is clicked you add certain items to the list it will be empty. But you can use cloud variables to encrypt data to a list
Correction: Not encrypt, encrypt means to password protect, the right word is encode, meaning to convert into a coded form.

Powered by DjangoBB