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

#1 2008-06-27 04:00:31

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

3X3 Grid Help

I need help! How can i get a simple script to check a 3X3 area for 5 different colors? Right now, I have a REALLY long script which moves and than checks. Is there an easier way (I use the stamp function and a sensor)?

And than it keeps checking until it can't find any of the same colors (if you can)

Last edited by Bluestribute (2008-06-27 04:04:27)


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#2 2008-06-27 11:40:28

bigB
Scratcher
Registered: 2007-06-09
Posts: 100+

Re: 3X3 Grid Help

what precisely is it checking for?
as it is only a 3 by3 grid cant you have a small sprite that goes rapidly from each square to the next checking for colours?  it could be put on ghost effect if you dont want it to be seen.
if you post the project i will look at it for you.


http://scratch.mit.edu/projects/bigB/260981 Draw to Text
http://scratch.mit.edu/projects/bigB/181829 3D Stunt Flyer

Offline

 

#3 2008-06-27 12:50:00

Bobby500
Scratcher
Registered: 2008-04-19
Posts: 1000+

Re: 3X3 Grid Help

Its for his rubiks cube thing.

Offline

 

#4 2008-06-27 13:34:50

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: 3X3 Grid Help

Bobby500 wrote:

Its for his rubiks cube thing.

Wrong. i need to check the colors around a certain point.


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#5 2008-06-27 15:24:30

bigB
Scratcher
Registered: 2007-06-09
Posts: 100+

Re: 3X3 Grid Help

im still not sure precisely what you are checking for. 
all colours the same?
one of each?


http://scratch.mit.edu/projects/bigB/260981 Draw to Text
http://scratch.mit.edu/projects/bigB/181829 3D Stunt Flyer

Offline

 

#6 2008-06-27 15:29:40

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: 3X3 Grid Help

bigB wrote:

im still not sure precisely what you are checking for. 
all colours the same?
one of each?

Yes. Keep checking if all the colors are the same. Like this:

Blue      Blue     Blue    Red
Green    Yellow  Blue       Orange
Purple    Blue    Green     Red

Now if you click the Blue in the upper Corner, it will check all of he colors around it. When it gets to red, it will stop, but it still has the blue under it. I need it to recognize all the colors next to it


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

Board footer