Hi Guys,
I am hopping someone can clear this up for me.
I am using the scroll text routine that I found on here a long time ago, But I had to change the screen size in my program 1024 x 768
now I get an out of bounds error with my font array as I changed the For/Next loop
Here is the code that would produce the error.
Repeat
StartDrawing (ScreenOutput())
;DrawImage (UseImage(font),0,0)
cco=0
For cc=0 To 32
letter=(Asc(Mid(t$,tptr+cc,1))-31) ; Debug output: letter = -31 out of bounds!
DrawImage(UseImage(gfxfont(letter)),(sco+cco),300+50*Sin((cc+cco+sco+m)/120))
cco=cco+32
Next
m=m-5
sco=sco-3
If sco<-32
tptr=tptr+1
sco=sco+32
EndIf
If tptr>(Len(t$)-30 )
tptr=1
EndIf
StopDrawing()
ExamineKeyboard()
FlipBuffers()
ClearScreen(0)
Until KeyboardPushed (#PB_Key_Escape)