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

#1 2008-01-05 13:45:20

Robin7
Scratcher
Registered: 2007-11-09
Posts: 100+

Grid arrays?

I want to create a 5 x 5 grid of backgrounds for a landscape, and make it possible for a sprite to move around in this landscape. Someone (a programmer not that familiar with Scratch) suggested I use a 5 x 5 array for this landscape. But since Scratch doesn't have arrays, what's the best way to do this?

Is there an existing game that I could look at that solves this problem?

Thanks  smile
Robin7

Offline

 

#2 2008-01-05 15:03:09

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

Re: Grid arrays?

Take a look at Mayhem's Wandering Knight project.

http://scratch.mit.edu/projects/Mayhem/28484

It might be doing what you want.


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

Offline

 

#3 2008-01-05 17:46:11

Robin7
Scratcher
Registered: 2007-11-09
Posts: 100+

Re: Grid arrays?

That is exactly what I was looking for! Thank you!  big_smile

Offline

 

Board footer