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

#1 2008-04-17 19:41:42

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Arrays

Does anyone know a way to make arrays or strings on scratch. This feature would be REALLY helpful on the project I'm currently making. Any help or advice would be much appreciated!

Offline

 

#2 2008-04-18 01:30:46

Mayhem
Scratcher
Registered: 2007-05-26
Posts: 1000+

Re: Arrays

The most flexible is a graphical array where you record data by colouring in pixels locations and use a tiny sprite to read those pixels.


Web-spinning Spider:  http://scratch.mit.edu/projects/Mayhem/18456
3D Dungeon Adventure:  http://scratch.mit.edu/projects/Mayhem/23570
Starfighter X: http://scratch.mit.edu/projects/Mayhem/21825
Wandering Knight: http://scratch.mit.edu/projects/Mayhem/28484

Offline

 

#3 2008-04-18 05:22:25

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Arrays

If you don't want to deal with screen arrays, Chalkmarrow has implemented a 100 element numeric matrix that you might find helpful.  It can be configured to any dimensions you want as long as the total number of elements is 100 or less.  It also wouldn't be very hard to expand.

http://scratch.mit.edu/projects/chalkmarrow/117305


http://i39.tinypic.com/2nav6o7.gif

Offline

 

Board footer