I am having problems with this piece of code, I have initialized d3d with d3d_init and set my d3d_font function but I can't draw any text with this code.
This code works good with dbp text function but not with d3dfunc dll?
Does anyone know how to fix this?
Cam_Pos_X$="Camera position X: "+str$(floor(camera position x()))
Cam_Pos_Y$="Camera position Y: "+str$(floor(camera position y()))
Cam_Pos_Z$="Camera position Z: "+str$(floor(camera position z()))
Cam_Ang_X$="Camera angle X: "+str$(floor(camera angle x()))
Cam_Ang_Y$="Camera angle Y: "+str$(floor(camera angle y()))
Cam_Ang_Z$="Camera angle Z: "+str$(floor(camera angle z()))
fps$=str$(screen fps())+" fps"
Display_Mode$=str$(screen width())+"x"+str$(screen height())+"x"+str$(screen depth())
GFX_card$=current graphics card$()
polys$="Polygons in screen: "+str$(statistic(1))
`displaying of messages for 640x480 screen resolution
if screen width()=640 and screen height()=480
d3d_starttext
d3d_color 255,255,255,255
d3d_text 1,0,0,0,Cam_Pos_X$
d3d_text 1,0,10,0,Cam_Pos_Y$
d3d_text 1,0,20,0,Cam_Pos_Z$
d3d_text 1,0,30,0,Cam_Ang_X$
d3d_text 1,0,40,0,Cam_Ang_Y$
d3d_text 1,0,50,0,Cam_Ang_Z$
d3d_text 1,screen width()-text width(Gfx_card$),0,0,Gfx_card$
d3d_text 1,screen width()-text width(Display_Mode$),10,0,Display_Mode$
d3d_text 1,screen width()-text width(polys$),20,0,polys$
d3d_text 1,screen width()-text width(fps$),30,0,fps$
d3d_endtext
endif
If anyone wants to join my team and help me with development of my sci-fi fps game, please send me an e-mail.