# \[FMX\] how to make maps easier in tile based games?

**URL:** <https://forum.kirupa.com/t/fmx-how-to-make-maps-easier-in-tile-based-games/151106>\
**Category:** programming\
**Created:** [June 13, 2005, 1:19pm UTC](https://forum.kirupa.com/t/fmx-how-to-make-maps-easier-in-tile-based-games/151106 "2005-06-13T13:19:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![paoloissic](https://avatars.discourse-cdn.com/v4/letter/p/bc79bd/32.png) [@paoloissic](https://forum.kirupa.com/u/paoloissic)\
**Post date:** [June 13, 2005, 1:19pm UTC](https://forum.kirupa.com/t/fmx-how-to-make-maps-easier-in-tile-based-games/151106/1 "2005-06-13T13:19:34Z")

</div>

im using flash MX and im doing a tile based RPG game and my map size is 640x480 pixels, my tiles are 32x32 in size…now to make my maps im a using a 2-dimensional array to hold my tiles together…i have made two maps now and it’s starting to get confusing editing them…this is my first map in my code:

myMap1 = [  
[3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3],  
[3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3],  
[3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3],  
[1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],  
[1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],  
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1,11,11,11,11,11,11,11, 1, 1, 1, 9],  
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 6],  
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 6],  
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],  
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1,11,11,11,11,11,11,11, 1, 1, 1, 1],  
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],  
[1, 1, 1, 1, 1, 1, 1, 1, 1,10, 5, 5, 5, 5,10, 1, 1, 1, 1, 1, 1],  
[1, 1, 1, 1, 1, 1, 1, 1, 1,10, 5, 5, 5, 5,10, 1, 1, 1, 1, 1, 1],  
[1, 1, 1, 1, 1, 1, 1, 1, 1,10, 5, 5, 5, 5,10, 1, 1, 1, 1, 1, 1],  
[3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3],  
[3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]  
];

i ws just wondering…what if i have more than 10 maps…aaaarrggghhhh…coz u know in an rpg u gotta have more than 10 maps…please help me…is there any other way to make tile based maps easier?
