Ive been hitting my head against the wall and cant seem to get this to work.

I want to use the arrows keys to move from box to box both horizontally and vertically.

I originally had a series of If yellow1 and left pressed, then move to purple1If purple1 and left pressed, then move to blue1If blue1 and left pressed, then move to yellow1, etc

As you can see, this will turn into a significant number of code lines.

In the name of efficiency, I tried setting up a while loop with instance variables that are both active and inactive. While active (=1), the cursor will scroll over them, While inactive (=0), the cursor will skip over them and head to the next instance.

As it stands now, the cursor will cycle through all nine objects... I would like it to recognize columns and rows, but I cant figure out how to do it other than the original way it was set up.

Hehe, I was working on responding to this, apparently right as you were Kyatric.

I was going to mention, there really are good number of ways to go about this one. I'll post my own method here as well, which involves adding row and column variables to the markers, as well as a row and column variable to the cursor. The cursor can then get to each marker via row and column designation.

My proposed method takes more resources methinks, since the position is checked each tick. But it's just another method. :)

That said, I was hoping I would be able to alter this grid. Sometimes, for instance, I may have 5 in a list in one column, 3 in a list in another column, and maybe only 2 in a third column.

Also, depending on actions taken in the game, one of the center pieces may disappear and reappear. I could, for example, flip a switch and the center piece disappears. In that case, I would want to the cursor to pass over the now missing piece, and adjust automatically to the next piece.