View Single Post
  #2  
Old 10-11-2013, 01:09 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Wouldn't this do what you want?

PHP Code:
temp.tilesetImage = "roak_tileset_gmap_overworld.png";
for (
temp.i = 0; temp.i < 64; temp.i++) { 
  for (
temp.k = 0; temp.k < 64; temp.k++) {
    
temp.tilex = i;
    
temp.tiley = k;
        
    for (
temp.r = 0; temp.r < 6; temp.r++) {
      
temp.tile = tilelayers[r].tiles[temp.tilex, temp.tiley]; 
      
temp.imagetile = TilesToImage(temp.tile);
      
this.levelImg.drawimagestretched(i * 16, k * 16, 16, 16, temp.tilesetImage, temp.imagetile[0], temp.imagetile[1], 16, 16);
    }
  }
} 
__________________
Quote:
Reply With Quote