Hi!
ive a problem with my text. I want to format it like this:
"The Titel"
" Here comes the the text"
" and thats another line of"
" the text"
here is my code:
Code: Select all
If InitSprite() = 0
MessageRequester("Error","Can't find DX7 or higher",0)
End
EndIf
If InitKeyboard() = 0
MessageRequester("Error","Can't find DX7 or higher",0)
End
EndIf
If OpenScreen(800,600,32,"Sinus-lines") = 0
MessageRequester("Error","Can't open a Fulscreen",0)
Else
Dim story.s(7)
For s = 0 To 7
story(0) = " _-| A Test|-_"
story(1) = "This is a small test with a text"
story(2) = "i can use it for credits and other"
story(3) = "things so it would be easy to put "
story(4) = "it in a game credit............. "
story(5) = "................................."
story(6) = "................................."
story(7) = "................................."
Next
LoadFont(0,"Courier",20)
Repeat
FlipBuffers()
ClearScreen(255,255,255)
ExamineKeyboard()
DrawingFont(UseFont(0))
For s = 0 To 7
For l = 160 To 200
Locate(200,l)
DrawText(story(s))
Next
Next
StopDrawing()
Until KeyboardPushed(#PB_Key_Escape)
EndIf
cya
bluespeed
http://www.purehilfe.de.vu
Edited by - blue-speed on 21 February 2002 11:48:15
