Quote:
Originally Posted by Stefan
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
x = y = 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.npcData: npcs) {
// Draws the NPC on the board on the same position as it is placed at in the level
drawobject(temp.npcData.x*16, temp.npcData.y*16, temp.npcData);
}
// Makes the drawing panel click-through, moving around is a pain in the ass otherwise
useOwnProfile = true;
profile.modal = false;
}