View Single Post
  #1448  
Old 03-27-2012, 11:53 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
Found a bug that applies to both v5 and v6. When you draw an NPC on a TDrawingPanel (clientside) it causes the NPC to first become invisible and thus not getting drawn. The NPC is not displayed again until it changes image/gani or the level is updated.

Example code:

PHP Code:
 new GuiDrawingPanel("Test_DrawingPanel") {
  
width height 200;
  
screenwidth/width/2;
  
screenheight/height/2;
  
clearall();
  
  
// Let's scan through the NPC's in the level and draw them!
  
for (temp.npcDatanpcs)
    
drawobject(00temp.npcData);
 } 
Problem does not occur when trying to draw player objects.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote