View Single Post
  #1451  
Old 03-29-2012, 03:47 AM
xXziroXx xXziroXx is offline
Master of Puppets
xXziroXx's Avatar
Join Date: May 2004
Location: Sweden
Posts: 5,288
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
Send a message via AIM to xXziroXx Send a message via MSN to xXziroXx
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;
  } 
__________________

"A delayed game is eventually good, but a rushed game is forever bad." - Shigeru Miyamoto
Reply With Quote