depends, do you want them all to be going at the same speed and in line with each other??? here's some examples
sync on
sync rate 50
rem sets up 3d environment
backdrop on
color backdrop rgb(0,0,0)
rem position and speed variables
x=-100
y=100
speed=2
rem main loop
do
rem increase variable 'x' by the value of speed
inc x,speed
rem position the text
text x,y,"Hello I'm Scrolling"
REM new stuff, same variables but with stuff added to or taken from
rem taking away from x puts it further back, adding to y puts it lower down
text x-50,y+40,"And again"
text x-150,y+80,"And again"
text x,y+120,"And again"
text x-50,y+160,"And again"
rem checks if its out of the screen and repositions it
if x>screen width() then x=-100
sync
loop
all that does is position the text in different places based on where the original piece is.
sync on
sync rate 50
rem sets up 3d environment
backdrop on
color backdrop rgb(0,0,0)
rem position and speed variables
REM (NEW) loads more cos of more text, but gives greater control
x1=-100
x2=x1
x3=x1
x4=x1
x5=x1
y1=40
y2=120
y3=200
y4=280
y5=360
speed1=2
speed2=5
speed3=1
speed4=2
speed5=3
rem main loop
do
rem increase variable 'x' by the value of speed
REM (NEW) we must do everyting five times cos of the five different
rem variables for each text piece
inc x1,speed1
inc x2,speed2
inc x3,speed3
inc x4,speed4
inc x5,speed5
rem position the text
text x1,y1,"Hello I'm Scrolling"
text x2,y2,"And again"
text x3,y3,"And again"
text x4,y4,"And again"
text x5,y5,"And again"
rem checks if its out of the screen and repositions it
if x1>screen width() then x1=-100
if x2>screen width() then x2=-100
if x3>screen width() then x3=-100
if x4>screen width() then x4=-100
if x5>screen width() then x5=-100
sync
loop
this one allows you to have greater control as you can change the speed for each one, but it uses alot of variables.
sync on
sync rate 50
rem sets up 3d environment
backdrop on
color backdrop rgb(0,0,0)
REM we have to declare our arrays
dim textarray(4,3)
dim string$(4)
rem we have to add data to our arrays
rem add x pos
for t=0 to 4
textarray(t,0)=-100
next t
y=40
rem add ypos
for t=0 to 4
textarray(t,1)=y
y=y+80
next t
rem add speed(will be random)
for t=0 to 4
textarray(t,2)=rnd(4)+1
next t
rem add what the text will say
string$(0)="Hello I'm Scrolling"
string$(1)="And Again"
string$(2)="And Again"
string$(3)="And Again"
string$(4)="And Again"
rem main loop
do
rem scrolls the text, notice how it is much less code
for t=0 to 4
x=textarray(t,0)
y=textarray(t,1)
speed=textarray(t,2)
inc x,speed
text x,y,string$(t)
textarray(t,0)=x
textarray(t,1)=y
next t
rem checks to see if text is off screen, also less code
for t=0 to 4
x=textarray(t,0)
y=textarray(t,1)
if x>screen width()
x=-100
endif
textarray(t,0)=x
textarray(t,1)=y
next t
sync
loop
this uses an array, this would be the best way as theres less code but arrays are hard to understand if your new to programming
hope that helps
ARE YOU A 3D MODELER??? IF SO WE NEED YOU!!!
EMAIL mynameisnoneofyourbuisness@hotmail.com to work on the new Star Strike project!!!