Imagine a grid with cells [], and a line L drawn on the grid. Furthermore, imagine a cell has a var set to 1, and another cell has a var set to 2, like so:
[1][][][]
[L][L][L]
[][][2][]
I want to make sure cells with var 1 are for themselves, divided by the L from cells with var 2. How do I make each side of the Line its own entity?
I tried doing a loop for each cell to check surrounding cells, and keep doing this while these cell detectors don't hit the line L, but I'm not sure how to correctly make nested loops in MMF2. The loops I've tried, crashed for me. I think it was because it ran infinitely.
How do I make nested loops for this particular example?
Thanks in advance!