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

#1 2008-09-05 15:16:39

slaners5
Scratcher
Registered: 2008-06-24
Posts: 14

Arrays?

How do you use the arrays in 1.3?  I heard one person say that with arrays you can save.  Is this true?  I'm confused!

Offline

 

#2 2008-09-05 16:14:23

blahdeblah
Scratcher
Registered: 2008-02-19
Posts: 45

Re: Arrays?

Well it could be i guess...
arrays are like variables that can store more than one item.
So if you want to make something like a mouse recorder, you wouldnt need to create hundreds of variables to record the x and y position, you would just need 2 arrays, or lists, that would store all x and y positions. Later, you can recall all the positions.
You can build lists with arrays too.  If you have Scratch 1.3, you can look at Fruit RPG and see how they do it.

Offline

 

Board footer