# Help with a grid/array of objects

**URL:** <https://forum.kirupa.com/t/help-with-a-grid-array-of-objects/306253>\
**Category:** programming\
**Created:** [March 11, 2010, 7:41pm UTC](https://forum.kirupa.com/t/help-with-a-grid-array-of-objects/306253 "2010-03-11T19:41:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![armyvisual](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@armyvisual](https://forum.kirupa.com/u/armyvisual)\
**Post date:** [March 11, 2010, 7:41pm UTC](https://forum.kirupa.com/t/help-with-a-grid-array-of-objects/306253/1 "2010-03-11T19:41:59Z")

</div>

Hey Guys,

I’m trying to create a simple game similar to a bunch of games I’ve seen floating around. Here is an example:

[http://bowlerhatgames.com/games/gridshock/](http://bowlerhatgames.com/games/gridshock/)

The part I’m having trouble with, is managing the array or matrix of objects. How would I go about testing the relation of a block, to the same blocks near it so I can remove those blocks, and let the rest fall back into the un-used spaces?

Thanks for the help in advance!
