Okay Secret Sally, I think people have squeezed enough information out of you to actually be able to help now.
Use one detector and a series of two loops to load your array.
Let's set a couple of ground rules first:
We're using your grid picture in the first post as reference (nine by five grid)
Box 1 is located at 0,0
Every box is 32x32px
Your collider object is 32x32px
Your collider object has a cell counter to keep track of which grid space it is over
The places where your Collider detects an impassable area are all in the family "Hard"
You will be using two loops in a nest, the "outer" loop runs five times (for grid rows) and your "inner" loop runs nine times (for grid columns)
This example uses a string to store the info, like you asked, but you could modify it to use an array
There are two text objects, "collisionText" and "freespaceText" to store the strings
Obviously, your real setup might be different but this is just an example
Okay, let's start:
1. Before the loop, reset all of your strings to empty (not "0", just nothing at all. No space between quotes.)
2. Set your collider object to 0,0
3. Set your collider object's counter to 1
4. Start your loops:
+ On loop "loopRow"
+Repeat 9 times
+Detector overlaps "Hard"
+Detector.Value('counter') = 1
- collisionText: Set text to Detector.Value('counter')
+Detector overlaps "Hard"
+Detector.Value('counter') > 1
- collisionText: Set text to collisionText.text & ", " & Detector.Value('counter')
+Detector does not overlap "Hard"
+Detector.Value('counter') = 1
- freespaceText: Set text to Detector.Value('counter')
+Detector oes not overlap "Hard"
+Detector.Value('counter') > 1
- freespaceText: Set text to freespaceText.text & ", " & Detector.Value('counter')
+ Always
- Add 1 to Detector.Value('counter')
- Detector: Set X to Detector.X + 32
+ On loop "loopRow"
- Detctor: Set Y to Detector.Y + 32
- Detector: Set X to 0
[/code:1it2l6qf]
That's a total of eight events for the loops, and that includes the redundant events to make sure that the counter is at 1 so it doesn't put a comma at the beginning. Of course I'm just doing this off the top of my head so it might need some tweaking but the basic idea is there.
Edit:
Also, in the future I suggest you give as much information as possible when asking for help, and don't hold back if someone asks for more info. It just makes it more difficult to help.