-
Mirroring grid issue
I have this: https://www.dropbox.com/s/8y2z87wd3w...%20problem.mfa
and I can draw in the grid with the colors..
What the problem is
1. when I want to clear a color, it flashes real fast, but still clears it.
2. When I draw in the main grid, I want to see it in the mini grid, but that doesn't seem to work.
when I save the grid status and load it, then it shows it in the mini gridmap.
so what am I missing ?
-
1. It's probably easier to have separate loops for mark and hover. The cell is flashing because loop "over" does a whole bunch of things you probably don't want happening upon marking a cell.
2. You need to somehow link the visual cell to the actual cell, otherwise it's running a loop for all visual cells with no reference for which one to pick. An alternative is to call the array after you plop a cell and draw the mini-grid from there.
-
You mean scanning all the cells ?
I tried that outside, but then it won't fill at all.
-
-
heh or use Fusion autopairing, that works too :P nice one klik
edit: Also alterable values are instance-based so there's no need for any loops at all.
-
Thanks.. That's what I wanted.. now see what I did wrong..
Have to see also why there is a gap between the cells in the little grid. since they are all filled up and next to eachother.. (If I load a image, then there is no gap) when I draw then there is
Edit: Think I can remove all the "over 2" ones in your solution as well, since there is no "over 2" seems like it anymore.
seems to work as well when I disable event 9,16 and 18
Edit2: so really the map thing was only event 6 ? I was way off with my thinking than... that's a lot easier..
Edit3: You must have something somewhere, when I copy the 2 sections to my example. then when I clear items on the grid, I get the blue square randomly... I checked the code, and they are both the same (?)
Did you change something else somewhere by any chance?
-
Edit 5: The Blue square issue seems to happen when the color is Green in this case. since it's the color before the clear one.
-
-
Thanks.. will get it once I have real internet.. cellphone internet sux..
-
yay, internet is back...
Checked out the file.
There is 1 thing I don't understand.
For the mini map... When I put the cells out there already 15 x 10 x 0 x 0 it's a whit square and when load my image it shows fine.. When I delete the items, I get the blue lines in between.
When I use the loop then there is 1 space in between. and when I delete items, I see normal squares,
how come if I do the no lines, that I still get a square outline, and all misshaped ? (I am trying not to see any lines in the mini picture, since I want to show it there without the lines in between.