PHP Code:
//#CLIENTSIDE
function onPlayerEnters() {
temp.haha= {
"world_bb01.nw","world_bb02.nw","world_bb03.nw",
"world_bc01.nw","world_bc02.nw","world_bc03.nw",
"world_bd01.nw","world_bd02.nw","world_bd03.nw",
"world_be01.nw","world_be02.nw","world_be03.nw"
};
//make haha tileset on world_aa01(top left) through
//world_bf03(bottom right).
addTileDef("regular-tileset.gif", "world_", 1);
for (temp.i : temp.haha) {
addTileDef("haha-tileset.gif", temp.i, 1);
}
}
Also, don't use GIF's, especially for tilesets... they have much larger file sizes for things like this than a PNG would, not to mention with a tileset you'll most likely run out of colors(256 max) and have permanent color-loss, which is VERY ugly in GIF.