Hi,
I'm in the process of looking for options to make text appear faster on the screen and have recently started looking into using Cloggys D3D functions.
But when I use the D3D_text commands nothing is being displayed.
I set up things like this
GameSetup:
global D3DFONTID as integer
D3DFONTID =2
Sync On : Sync Rate 0 : Sync : Backdrop On
`Initialise the D3Dfunc dll
D3D_Init
set display mode 1024,768,32
SET TEXT FONT "Arial"
set text size 14
set text opaque
D3D_Font D3DFONTID, "Arial",14,0,0,0
set dir "media\"
The first time I want to use the D3D commands are here...
rem --------------------------------------------------------------------
rem choose character sex
rem --------------------------------------------------------------------
Function ChooseSex()
d3d_color 100,100,100,0
d3d_starttext
d3d_text D3DFONTID,30,10,0,"Create your character"
d3d_text D3DFONTID,30,40,0,"Use UP / DOWN and ENTER to make your choices - choices in blue are the selected ones."
d3d_endtext
while scancode()<>0 : endwhile
dim CharacterSex(2) as string
CharacterSex(1) = "(A) Male"
CharacterSex(2) = "(B) Female"
chc = 1
rem step 1: choose the sex of the character
d3d_color 200,200,200,255
for a = 1 to 2
remstart
if chc = a
ForeColour = FindColour("colourBLUE") : rem system.dba
else
ForeColour = FindColour("colourWHITE") : rem system.dba
endif
rem ink ForeColour,BackColour
remend
d3d_starttext
d3d_text D3DFONTID,30,50+(a*15),0, CharacterSex(a)
d3d_endtext
next a
sync
I'm missing something but I really don't know what - can anyone offer any advice?
Steve
Marriage is a circle of rings....
Engagement ring, Wedding ring, Suffering!