View Single Post
  #1451  
Old 03-29-2012, 03:47 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by Stefan View Post
Hmmm the problem can be that the npc was not previously visible when you were drawn it on the drawing panel? It might load the textures just in memory and then cannot be drawn normally to OpenGL/DirectX.
I took a somewhat laggy and inconclusive video to try and show you the problem.



Source code:
PHP Code:
  new GuiDrawingPanel("Test_DrawingPanel") {
    
width height 64*16;  // Creates a drawing panel as big as the level
    
0;  // Places the drawing panel in the top left corner of the screen
    
clearall();
    
    
// Let's scan through the NPC's in the level and draw them!
    
for (temp.npcDatanpcs) {
      
// Draws the NPC on the board on the same position as it is placed at in the level
      
drawobject(temp.npcData.x*16temp.npcData.y*16temp.npcData);
    }
    
    
// Makes the drawing panel click-through, moving around is a pain in the ass otherwise
    
useOwnProfile true;
    
profile.modal false;
  } 
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote