BullDog_Flash
April 4th, 2003, 04:47 PM
Yeah!!!!
There great I love the way you make map Arrays.
But I need some help since the site I am using donsent explain this code to well.
var mapWidth = map[0].length;
var mapHeight = map.length;
for (var i = 0; i < mapHeight; ++i) {
for (var j = 0; j < mapWidth; ++j) {
this.attachMovie("tile", "t_"+i+"_"+j, ++d);
this["t_"+i+"_"+j]._x = (j*tileW);
this["t_"+i+"_"+j]._y = (i*tileH);
this["t_"+i+"_"+j].gotoAndStop(map[i][j]+1);
}
}
}
I have no clue what that does.
Please Please Please tell me what that does i kno its very important to know what it is.
Please anyone please tell me what it does
There great I love the way you make map Arrays.
But I need some help since the site I am using donsent explain this code to well.
var mapWidth = map[0].length;
var mapHeight = map.length;
for (var i = 0; i < mapHeight; ++i) {
for (var j = 0; j < mapWidth; ++j) {
this.attachMovie("tile", "t_"+i+"_"+j, ++d);
this["t_"+i+"_"+j]._x = (j*tileW);
this["t_"+i+"_"+j]._y = (i*tileH);
this["t_"+i+"_"+j].gotoAndStop(map[i][j]+1);
}
}
}
I have no clue what that does.
Please Please Please tell me what that does i kno its very important to know what it is.
Please anyone please tell me what it does