Searched the forums but couldn't find a Map Editor example that used an Array (well, one that allowed editing/loading/saving of what you create anyway).
So I've put together this simple map editor that lets you save to a mymap.map file - you can see how it's all done in the provided .cap (haven't commented, but feel free to ask if you have any questions)
In terms of values, Brown = 1 and Green = 2 by default.
[list:2c92l9bx]ctrl + r - creates new randomized map
ctrl + s - saves map to mymap.map
ctrl + l - loads map from mymap.map
left click on green tiles to make brown
right click on brown tiles to make green
F1 returns to this screen
Planning to use this or a more advanced version for an upcoming ARPG built in Construct. Using box objects in this example (for easy detection of block being clicked), but will be pasting in to canvas for actual game. If anyone has any ideas for converting this editor to use canvas, would really like to see that
Let me know if you have any questions, feedback much appreciated. Hope this comes in handy.
[url:2c92l9bx]http://www.mediafire.com/?nxx98ttnaomkyp7[/url:2c92l9bx] (.exe + .cap included)