I'm trying to create a world that is specifficaly used for the inventory and mission tab. But i'm not getting anything on screen. I'm using the following code in the loop
if KeyHit(KEY_M)==1 then
if missionWorld == 0 then
mworld=CreateWorld()
if mworld==nil then
Notify("Mission World FAIL.",1)
return
end
DrawRect(GraphicsWidth()/2,GraphicsHeight()/2,50,50)
missionWorld = 1
elseif missionWorld == 1 then
missionWorld = 0
end
end
fw:Update()
time=AppTime()
fw:Render()
mworld:Render()
--Render(mworld)
SetBlend(1)
DrawText(missionWorld,0,400)
SetBlend(0)
Flip(0)
The mission world is active because the text in screen changs correctly, but there is nothing drawn. How should I use the render command?