# Help for adding more tiles to tile based as3 game

**URL:** <https://forum.kirupa.com/t/help-for-adding-more-tiles-to-tile-based-as3-game/264388>\
**Category:** Uncategorized\
**Created:** [June 25, 2008, 6:01pm UTC](https://forum.kirupa.com/t/help-for-adding-more-tiles-to-tile-based-as3-game/264388 "2008-06-25T18:01:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thejoeknows\_com](https://avatars.discourse-cdn.com/v4/letter/t/5daacb/32.png) [@thejoeknows\_com](https://forum.kirupa.com/u/thejoeknows_com)\
**Post date:** [June 25, 2008, 6:01pm UTC](https://forum.kirupa.com/t/help-for-adding-more-tiles-to-tile-based-as3-game/264388/1 "2008-06-25T18:01:35Z")

</div>

im playing around with this code, [http://www.emanueleferonato.com/2008/06/22/step-by-step-as3-translation-of-creation-of-a-platform-game-with-flash-step-15/](http://www.emanueleferonato.com/2008/06/22/step-by-step-as3-translation-of-creation-of-a-platform-game-with-flash-step-15/)

right now it is only set up to use one tile from the movieclip platform\_tile

how would i make it so i can make an unlimited number of tiles?

from the little as3 knowledge i have, would i make it so you load platform\_tile+i (number of tile in movieclip which would equal the number on the array?

this is the map code:

```auto

        private function BuildMap(){
            Map_data.Setup(); // setup data from extern file
            
            level = Map_data.level1; // get data from extern file
            
            for(var t = 0; t < level.length; t++){
                for(var u = 0; u < level[t].length; u++){
                    if(level[t][u] != 0){ //if the data is not null
                        
                    
                    
                        var new_tile:platform_tile = new platform_tile; //than build a tile
                        
                        addChild(new_tile); //put it on the screen
                        
                        new_tile.gotoAndStop(1);
                        new_tile.x = u * 25;
                        new_tile.y = t * 25;
                        
                        tiles.push(new_tile); //put it in an array
                    }
                }
            }
        }
    }
}

```

thank you  
-joey
