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;
x = screenwidth/2 - width/2;
y = screenheight/2 - height/2;
clearall();
// Let's scan through the NPC's in the level and draw them!
for (temp.npcData: npcs)
drawobject(0, 0, temp.npcData);
}
Problem does not occur when trying to draw player objects.