Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Creating a list automatically
- goldfish678
-
1000+ posts
Creating a list automatically
Could someone link me to a project that has the capability of creating a list automatically? There's a few out there, but I can't seem to find one.
- -PRO-
-
500+ posts
Creating a list automatically
You have to create the list. The sprite cannot create a whole new list.
- Braeden5454
-
500+ posts
Creating a list automatically
Actually, you can make a script that creates a list, but it will be local to the sprite only.
- derpmeup
-
1000+ posts
Creating a list automatically
Yeah, CodeLegend made a script that actually creates a list. It's in his Infinite Lists project. Actually, you can make a script that creates a list, but it will be local to the sprite only.

- goldfish678
-
1000+ posts
Creating a list automatically
Okay, I'll take a look.Yeah, CodeLegend made a script that actually creates a list. It's in his Infinite Lists project. Actually, you can make a script that creates a list, but it will be local to the sprite only.
- Braeden5454
-
500+ posts
Creating a list automatically
It takes advantage of the fact that when a list is called on that doesn't exist, scratch will create the var or list.
- MoreGamesNow
-
100+ posts
Creating a list automatically
But you can't access a list with a variable's value, right? How would you do this? It takes advantage of the fact that when a list is called on that doesn't exist, scratch will create the var or list.
I'm not sure why you'd want to do this, but you might consider making a list of lists (for instance, elements 1-100 are one list, 101-200 are another, etc.)
- RPFluffy
-
1000+ posts
Creating a list automatically
Actually, you can make a script that creates a list, but it will be local to the sprite only.
Correct! It can't do it globally

- Thepuzzlegame
-
1000+ posts
Creating a list automatically
Unless you put the script which creates the list in the background sprite. Then it becomes a global list. Actually, you can make a script that creates a list, but it will be local to the sprite only.
- goldfish678
-
1000+ posts
Creating a list automatically
The problem is solved here. Closing.
- Discussion Forums
- » Help with Scripts
-
» Creating a list automatically