Discuss Scratch

IAmHutch
Scratcher
100+ posts

Can you make local lists?

I want to make a list but its different depending on player input
awesome-llama
Scratcher
1000+ posts

Can you make local lists?

Elaborate a bit more please.

Lists can be “local” just like variables, by creating them with the setting for this sprite only. Is this related to what you are asking about?
IAmHutch
Scratcher
100+ posts

Can you make local lists?

awesome-llama wrote:

Elaborate a bit more please.

Lists can be “local” just like variables, by creating them with the setting for this sprite only. Is this related to what you are asking about?
No. non-cloud is what I meant. sorry if I was a little vauge
awesome-llama
Scratcher
1000+ posts

Can you make local lists?

IAmHutch wrote:

awesome-llama wrote:

Elaborate a bit more please.

Lists can be “local” just like variables, by creating them with the setting for this sprite only. Is this related to what you are asking about?
No. non-cloud is what I meant. sorry if I was a little vauge
OK, so how about player input?

In what way is it different?
How does it relate to the lists you want to use?
IAmHutch
Scratcher
100+ posts

Can you make local lists?

awesome-llama wrote:

IAmHutch wrote:

awesome-llama wrote:

Elaborate a bit more please.

Lists can be “local” just like variables, by creating them with the setting for this sprite only. Is this related to what you are asking about?
No. non-cloud is what I meant. sorry if I was a little vauge
OK, so how about player input?

In what way is it different?
How does it relate to the lists you want to use?
Let me elaborate here. I want to use a list. but I also want different players to add to it BUT I also want a way to delete all the times a certain player added something if they ask.
Cat_Dusty
Scratcher
500+ posts

Can you make local lists?

IAmHutch wrote:

awesome-llama wrote:

Elaborate a bit more please.

Lists can be “local” just like variables, by creating them with the setting for this sprite only. Is this related to what you are asking about?
No. non-cloud is what I meant. sorry if I was a little vauge

All list are non-cloud, cloud lists do not exist
IAmHutch
Scratcher
100+ posts

Can you make local lists?

Cat_Dusty wrote:

IAmHutch wrote:

awesome-llama wrote:

Elaborate a bit more please.

Lists can be “local” just like variables, by creating them with the setting for this sprite only. Is this related to what you are asking about?
No. non-cloud is what I meant. sorry if I was a little vauge

All list are non-cloud, cloud lists do not exist


then how do high scores work?
awesome-llama
Scratcher
1000+ posts

Can you make local lists?

IAmHutch wrote:

Let me elaborate here. I want to use a list. but I also want different players to add to it BUT I also want a way to delete all the times a certain player added something if they ask.
So you will need to create a system that sends and receives data through cloud variables (the only way to communicate between other users in a project). There are a lot of ways you can choose to do this. One way would be to first implement what's known as a “cloud list”. Without lists themselves being able to truly connect to cloud, you have to use cloud variables to store the data in the list.
Once that's done, you can “assign” usernames to each item of that list. If you wanted to only have one cloud list, then you may want to store a pattern of items, say username followed by the data, followed by username, followed by data, etc. That way, deleting a specific user's data requires going through that list and deleting the items where their username appears.
Another way is to have two cloud lists, one storing the data you originally wanted to store, and the other list storing the usernames for each corresponding item.
Cat_Dusty
Scratcher
500+ posts

Can you make local lists?

IAmHutch wrote:

Cat_Dusty wrote:

IAmHutch wrote:

awesome-llama wrote:

Elaborate a bit more please.

Lists can be “local” just like variables, by creating them with the setting for this sprite only. Is this related to what you are asking about?
No. non-cloud is what I meant. sorry if I was a little vauge

All list are non-cloud, cloud lists do not exist


then how do high scores work?

Cloud variables
IAmHutch
Scratcher
100+ posts

Can you make local lists?

Cat_Dusty wrote:

All list are non-cloud, cloud lists do not exist


then how do high scores work?

Cloud variables

High score lists, like in griffpatches projects.
Cat_Dusty
Scratcher
500+ posts

Can you make local lists?


That's just a whole bunch of data put into a cloud variable. It's still just a cloud variable

Last edited by Cat_Dusty (Sept. 17, 2021 20:26:00)

IAmHutch
Scratcher
100+ posts

Can you make local lists?

Cat_Dusty wrote:

That's just a whole bunch of data put into a cloud variable. It's still just a cloud variable
this is a cloud variable? https://scratch.mit.edu/projects/389464290/
Cat_Dusty
Scratcher
500+ posts

Can you make local lists?

IAmHutch wrote:

Cat_Dusty wrote:

That's just a whole bunch of data put into a cloud variable. It's still just a cloud variable
this is a cloud variable? https://scratch.mit.edu/projects/389464290/

YES!!!

Powered by DjangoBB