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