View Single Post
  #2  
Old 01-22-2013, 09:00 PM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
something like this should work

PHP Code:
new GuiDrawingPanel("GuiNameHere") {
  
visible false;
  
resize(006464);
  
clearall();

  for (
temp.render_x 0temp.render_x 64temp.render_x ++) {
    for (
temp.render_y 0temp.render_y 64temp.render_y ++) {
      
temp.pl_x player.- (player.x%64); //get the starting point of the 64x64 tiles render (starting point of the level in this case; works on maps and insides)
      
temp.pl_y player.- (player.y%64); // ^
      
temp.tile_tiles tiles[ (temp.pl_x temp.render_x), (temp.pl_y temp.render_y) ];
      
temp.tile_image TilesToImage(temp.check_tile);
      
drawimagestretched(render_x*16render_y*161616getTileset(), temp.tile_image[0], temp.tile_image[1], 1616);
    }
  }
  
saveimage("ImageNameHere");
  
destroy();

if not, check dusty's mode7 thing, that helped me when i made my level displayer in a GUI (can be checked on Testbed, weapon name is 'Public/DustyPorViva/Mode7')
__________________
MEEP!
Reply With Quote