Neone can make a simple sin text scroller function using the text command that can be plugged into any program??
EDIT:
Here is the latest version of the DEMO code cleaned up for ya.
EDIT:
Here is the latest version of the DEMO code cleaned up for ya.
Global gfxBG, gfxflare Graphics3D 640, 480,32, 1 SetBuffer BackBuffer() TFormFilter 1 Color 0,0,0 MilliSecs = 0 n = 0 grlx = 1 grly = 1 grly2 = 641 grlxdir = 1 grly = 1 timex = 0 speedtimex = 8 Type t_bullet Field x,y Field speedx,speedy End Type Global bullet.t_bullet gfxBG=LoadImage("coolblue.png") gfxface = LoadImage("interface2.png") gfxgirl=LoadImage("amigagirl.png") gfxflare=LoadImage("ice.png") chnBackground=PlayMusic("z-tower.xm") While Not KeyHit(1) If KeyDown(203) Then timex = timex - 1 If KeyDown(205) Then timex = timex + 1 Cls DrawImage gfxBG, 1, 1 DrawImage gfxface, 1, 1 Text 50, 365, "NOW PLAYING" Text 50, 365, "NOW PLAYING" Text 30, 385, "TITLE: TOWER OF FLAMES": Text 30, 385, "TITLE: TOWER OF FLAMES" Text 30, 405, "ARTIST: Frederic Hahn": Text 30, 405, "ARTIST: Frederic Hahn" Text 30, 435, "UP/DOWN TO CHANGE SONG" Text 30, 450, "LEFT/RIGHT TO CHANGE TEXT SPEED" x=timex/10.0 bulletchance = Rnd(0,10): If bulletchance = 5 Then bullet.t_bullet = New t_bullet: bullet\x = Rnd(0,200): bullet\y = Rnd(0,10): bullet\speedx = Rnd(1,3): bullet\speedy = Rnd(1,3) bulletchance2 = Rnd(0,100): If bulletchance = 10 Then bullet.t_bullet = New t_bullet: bullet\x = Rnd(0,200): bullet\y = Rnd(0,10): bullet\speedx = Rnd(1,3): bullet\speedy = Rnd(1,3) updategame() rendergame() If grlxdir = 1 Then grlx = grlx + 1 If grlxdir = 2 Then grlx = grlx - 1 If grlx = 100 Then grlxdir = 2 If grlx = 1 Then grlxdir = 1 SinScroll (" ................................... CodeD aka (DJ) Krazy K Presents Amiga Tribute Vol. 1 ... Press up/down to change songs ... Code: CodeD, Jeppe Neilson (SinScroll) Gfx: FrogDot (thx for the babe!), CodeD ... Mods for Charity ... your donations help children!!! ... Visit <a href="http://sites.gwala.net/tormented/amiga" target="_blank">http://sites.gwala.net/tormented/amiga</a> for more info and to order the CD ... greetings to: Ckob, Lenn, Noel Cower, JFK, DJ SeeNSay, LizardKing, FutureCrew, Paradox, Mark Sibly & The Blitz Basic Crew, The Anonymous Modder ... Gotta have mod?? Amiga Tribute Vol. 2 coming soon!! Cybernoid 3D coming soon!! Quality apps like this and more from CrapSoft and Evolved Dev Studios ............................ ", -x, 135, timex/10.0) SinScroll (" ................................... CodeD aka (DJ) Krazy K Presents Amiga Tribute Vol. 1 ... Press up/down to change songs ... Code: CodeD, Jeppe Neilson (SinScroll) Gfx: FrogDot (thx for the babe!), CodeD ... Mods for Charity ... your donations help children!!! ... Visit <a href="http://sites.gwala.net/tormented/amiga" target="_blank">http://sites.gwala.net/tormented/amiga</a> for more info and to order the CD ... greetings to: Ckob, Lenn, Noel Cower, JFK, DJ SeeNSay, LizardKing, FutureCrew, Paradox, Mark Sibly & The Blitz Basic Crew, The Anonymous Modder ... Gotta have mod?? Amiga Tribute Vol. 2 coming soon!! Cybernoid 3D coming soon!! Quality apps like this and more from CrapSoft and Evolved Dev Studios ............................ ", -x-1, 135, timex/10.0) DrawImage gfxgirl, grlx, grly DrawImage gfxgirl, grlx, grly2 Flip If timex < 0 Then timex = 0 timex = timex + speedtimex If KeyDown(203) Then speedtimex = speedtimex - 1 If KeyDown(205) Then speedtimex = speedtimex + 1 Wend Function updategame() For bullet.t_bullet = Each t_bullet bullet\x = bullet\x + bullet\speedx bullet\y = bullet\y + bullet\speedy Next End Function Function rendergame() For bullet.t_bullet = Each t_bullet DrawImage gfxflare,bullet\x,bullet\y Next End Function Function SinScroll(txt$,x,y,am,amp=50,per=20,d=10) For n=1 To Len(txt$) Text x+xx,y+Sin(am+n*per)*amp,Mid$(txt$,n,1) xx=xx+d Next End Function