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

#1 2011-07-01 15:38:00

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Variables List

Okay, this is no particular project help but just an understanding process. So can somebody explain to me what the variable lists do? In variables if you click the list what do the variable list blocks do? Please explain as clear as possible. Thanks.


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

#2 2011-07-01 17:04:57

MathimaticalPiGuy
New Scratcher
Registered: 2011-07-01
Posts: 2

Re: Variables List

Lists are usually used to show "tasks" in the game. For example, if you want the player to find a snake, create a list, and then type in "Find snake" or something related to that.

Offline

 

#3 2011-07-01 18:34:18

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Re: Variables List

Which block are you describing in the list you made?


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

#4 2011-07-02 12:38:21

EdnaC
Scratcher
Registered: 2007-08-28
Posts: 100+

Re: Variables List

A list is like any other variable, except that it can hold as many values as you'd like, each "slot" in the list can have a value stored in it.

Offline

 

#5 2011-07-02 15:45:56

dbmamaz
New Scratcher
Registered: 2011-06-29
Posts: 16

Re: Variables List

its an array, right?  trying to remember what arrays were particularly useful for.  Like maybe if you had a sprite which was made of diferent parts and you would store the position of each part in a different box in the array?

Offline

 

#6 2011-07-03 19:35:45

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Re: Variables List

Values particularly meaning a command?


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

#7 2011-07-03 20:39:28

EdnaC
Scratcher
Registered: 2007-08-28
Posts: 100+

Re: Variables List

Values can be numbers or text stored in the "slots" of the list, just like a variable can store in its single "slot".  In OrbitTracker, I  made two lists to store the X and Y position of a tracer sprite;
The sprite goes to the X,Y position stored in the lists and stamps a black costume, then goes to a "planet", stamps a costume with color, and stores that position in the lists.  The effect is to make a trail by erasing (stamping over) the old mark, then making a new mark - the length of the list determines how long the trail is.

Offline

 

#8 2011-07-03 21:05:45

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Re: Variables List

Oh... it can be used for practically anything?


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

#9 2011-07-03 21:15:28

dbmamaz
New Scratcher
Registered: 2011-06-29
Posts: 16

Re: Variables List

I think its just like several variables stuck together, but you usually would use them for variables which are related to each other.

Offline

 

#10 2011-07-03 21:39:38

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Re: Variables List

That is confusing.


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

Board footer