@DexTro:
Well, to be honest - I do not know much about sine scrollers - and I have to admit that
I am didnt code in purebasic for some months. But I have done the following little test
that might help you ...
(Note: Now there is only one sprite containing the whole text - change this so that every
letter is represented by a single sprite and add the sinus sprite clipping on every letter sprite)
; little sinus scroll example by benny!weltenkonstrukteur.de
If InitSprite() = 0 Or InitKeyboard() = 0
MessageRequester("Error", "Can't open DirectX 7 or later", 0)
End
EndIf
If OpenScreen(640, 480, 16, "SinusScroll")
; Creating test scrolly
CreateSprite( 13, 128, 128, #PB_Sprite_Memory )
LoadFont(1, "Arial", 32 )
StartDrawing( SpriteOutput( 13 ) )
BackColor( RGB(0,0,0) )
FrontColor( RGB(255,255,255) )
DrawText(1,1,"TEST 123")
StopDrawing()
sin.f = 0.0
Repeat
FlipBuffers()
ClearScreen(RGB(0,0,0))
For i=1 To 128
sin.f + 0.0018
ClipSprite( 13, i, 1, 1, 32 )
DisplaySprite(13, 100+i, 200+Sin(sin.f-i*0.1)*( i/5) )
Next i
Delay(1)
ExamineKeyboard()
Until KeyboardPushed(#PB_Key_Escape)
Else
MessageRequester("Error", "Can't open a 640*480 - 16 bit screen !", 0)
EndIf
End