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

#1 2010-03-03 12:31:20

xerophyte
Scratcher
Registered: 2010-02-24
Posts: 3

URGENT HELP: Arrays

ok my game is basically a dance game and i want to store all the moves in a table of routines, so that i set routine to random and automatically the game picks out the moves for that routine. As a programmer, i would normally do it by a 2d array. is sucha feature available in scratch? i think i saw a post somewhere by the title "arrays, what are they and how can i use em?" but i cant find it now. it lead me to suspect that scratch has arrays. and this really UGRENT cuz i have to submit my project on saturday

Offline

 

#2 2010-03-03 12:37:03

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: URGENT HELP: Arrays

Scratch has 1d arrays but they are called lists.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#3 2010-03-03 12:50:23

xerophyte
Scratcher
Registered: 2010-02-24
Posts: 3

Re: URGENT HELP: Arrays

isnt there a way to perform the action  of a 2d array? i saw a minsweeper game.... it used 2d arrays i am sure.

Offline

 

#4 2010-03-03 12:55:05

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: URGENT HELP: Arrays

You can't make 2d arrays so the best you can do is make a set of 1d arrays.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#5 2010-03-03 13:06:03

xerophyte
Scratcher
Registered: 2010-02-24
Posts: 3

Re: URGENT HELP: Arrays

thanx...i am gonna make seperate lists for each routine and reate a decision tree to address em...

Offline

 

Board footer