This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-06-24 09:33:49

leondoubleh
Scratcher
Registered: 2012-01-29
Posts: 21

list?

im having a little trouble understanding what or how to use the list . if you dont now what im on about by list well its under the variables catogory.Plz help as i might be abe to use it to develop some better games  smile

Offline

 

#2 2012-06-24 10:00:59

SciTecCf
Scratcher
Registered: 2011-11-23
Posts: 1000+

Re: list?

Lists are exactly what the name implies. Just a list. It has no length limit. Like a bunch of variables.

It is useful for storing variables, so that you can have a nearly infinite amount. I encourage you to experiment with it, as it is a very useful feature of Scratch.  smile


http://bit.ly/LCZEJRhttp://bit.ly/LSONcOhttp://bit.ly/LF3vIc
http://trinary.site40.net/images/scratchrank.php?username=SciTecCf&display=small

Offline

 

#3 2012-06-24 18:49:11

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Re: list?

Its just a bunch of variables in one place. You can access and store a large quantity of data using lists.


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

#4 2012-06-24 19:14:50

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: list?

A list is like a book.  On every page, there is written either a word or number - some sequence of characters.  You as a programmer are allowed to add and insert pages anywhere in the book, delete ("tear out") pages, check the value of ("read") pages, and check to see whether there is a certain "word" written on any page of the book.

More generally, a list is a numbered collection of variables.  It allows you to dynamically store data (in other words, you could have a theoretically unlimited number of items in your list that are all created at runtime).  You can then access each item of the list individually.  Every member of the list functions as an independent variable: you can read and write in the same way you would to any other variable. 

I just like the book analogy.  Hope that helps clear up your question.

Offline

 

#5 2012-06-25 02:12:12

JH1010
Scratcher
Registered: 2012-05-31
Posts: 1000+

Re: list?

I am also struggling to work out lists but I think I understand them now.

Offline

 

Board footer