Simple Map Editor using Array

Post your own tutorials, guides and demos.

Post » Fri Dec 31, 2010 6:13 am

Hi everyone,

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 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
ctrl + l - loads map from
left click on green tiles to make brown
right click on brown tiles to make green
F1 returns to this screen
escape exits[/list:u:2c92l9bx]

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 :D

Let me know if you have any questions, feedback much appreciated. Hope this comes in handy.


[url:2c92l9bx][/url:2c92l9bx] (.exe + .cap included)


Posts: 2
Reputation: 779

Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 1 guest