Next time, don't crosspost your questions! It's bad I tell ya
![](/ubbthreads/images/graemlins/shocked.gif)
No really, don't. Wait for a response in that forum or put it in the right forum directly. If you made a mistake, ask a moderator to move it.
Code:
function tile_sprite (amount_of_tiles, tile_width) {
var counter;
while (counter < amount_of_tiles) {
//put a tile on an increasing x-axis position
ent_create ("tile.pcx", vector (counter * tile_width, 0, 0), null);
counter += 1;
}
}
tile_sprite (15, 64); //15 = amount of tiles, 64 = width of the bmap (in this case tile.pcx)
Like that?