Fixed, now get them E-Card's out.
Rem Project: Christmas Program
Rem Created: Monday, December 05, 2011
sync on
backdrop off
sync rate 60
cls
set display mode 1024,768,32
set window on
set ambient light 50
scrollspeed#=0.04
depth#=0.001
x#=16
position camera 0,0,0
set camera range 1,20000
Load Music "media\Troika.mp3",1
set music volume 1,50
play music 1
D3D_Init 1
D3D_FONT 1,"impact",32,0,0,1
D3D_STARTTEXT `| Cant get this to work!
D3D_BOXTEXT 1, 300,200,400,200,2,2,"Loading Please Wait...." `| Cant get this to work!
D3D_ENDTEXT `| Cant get this to work!
sync `| Cant get this to work!
sync
load object "media\skybox.dbo",2
scale object 2,100000,100000,100000
Position object 2,0,0,0
D3D_MAKE_3DTEXT 501, 1,"Hello and welcome.",depth#,0,1
scale object 501,150,150,150
color object 501,rgb(001,001,001)
position object 501,x#,-6,10
load image "media\snowflake.png",1
Make particles 1,1,2,10
set particle life 1,100
set particle gravity 1,0.5
set particle floor 1,0
position particles 1,-6,51,65
SET PARTICLE VELOCITY 1, 1
make object plane 3,400,100
lock object on 3
position object 3,0,0,300
load image "media\Santa's Sleigh.png",2
texture object 3,2
set object transparency 3,4
do
if mess < 12
if object exist (501)=0 then gosub reassign1
if object exist (502)=0 then gosub reassign2
if object exist (503)=0 then gosub reassign3
endif
if object exist (501)
move object left 501,scrollspeed#
if object position x(501) < -30 then delete object 501
endif
if object exist (502)
move object left 502,scrollspeed#
if object position x(502) < -30 then delete object 502
endif
if object exist (503)
move object left 503,scrollspeed#
if object position x(503) < -30 then delete object 503
endif
YROTATE OBJECT 2,OBJECT ANGLE Y(2)-0.3
sync
loop
reassign1:
inc mess
read message$
D3D_MAKE_3DTEXT 501, 1,message$,depth#,0,1
scale object 501,150,150,150
color object 501,rgb(001,001,001)
message1size#=OBJECT SIZE X(501)*0.75
message1Xpos#=object position x(501)
message3size#=OBJECT SIZE X(503)*0.75
message3Xpos#=object position x(503)
position object 501, message3Xpos#+message3size#+message1size#+0.5,-6,10
return
reassign2:
inc mess
read message$
D3D_MAKE_3DTEXT 502, 1,message$,depth#,0,1
scale object 502,150,150,150
color object 502,rgb(001,001,001)
message1size#=OBJECT SIZE X(501)*0.75
message1Xpos#=object position x(501)
message2size#=OBJECT SIZE X(502)*0.75
message2Xpos#=object position x(502)
position object 502, message1Xpos#+message1size#+message2size#+0.5,-6,10
return
reassign3:
inc mess
read message$
D3D_MAKE_3DTEXT 503, 1,message$,depth#,0,1
scale object 503,150,150,150
color object 503,rgb(001,001,001)
message2size#=OBJECT SIZE X(502)*0.75
message2Xpos#=object position x(502)
message3size#=OBJECT SIZE X(503)*0.75
message3Xpos#=object position x(503)
position object 503, message2Xpos#+message2size#+message3size#+0.5,-6,10
return
end
data "Wishing all my family a Merry Christmas and a Happy New Year"
data "from John, Yuletide greeting to......Chris, Paul and Paula, Nic, Tim"
data "and Ben, Ann and Keith, Lee and June, Tracey, Sean, Lauren and Brittony"
data ", Mark, Caroline, Charlotte and Danielle, Lynda, Robbie, Keith Wiles, Ian,"
data "Sarah, Dennis, Charlie and Demi, Carol, Gary, Emma, Becci, Molli and Lili"
data ", Eddie, Karen, Daniel, Sam, Billy, Jamie and Kelsie, Lynne, Tony, Sue,"
data "................ Wishing you all the best for Christmas and the New Year"
data "and hoping that you enjoyed my little Christmas Scrolling E-Card"
data "that was written entirely in Dark basic by Me, John Keenleyside. "
data "Special thanks to my Honey Princess Rachel for the love and moral support"
data "and please forgive me if I have forgotten anybody as I have a brain like a "
data "Sieve as you all well know ..............................................."
Edit: If you prefer to have the text continue scrolling.
Rem Project: Christmas Program
Rem Created: Monday, December 05, 2011
sync on
backdrop off
sync rate 60
cls
set display mode 1024,768,32
set window on
set ambient light 50
scrollspeed#=0.04
depth#=0.001
x#=16
position camera 0,0,0
set camera range 1,20000
Load Music "media\Troika.mp3",1
set music volume 1,50
play music 1
D3D_Init 1
D3D_FONT 1,"impact",32,0,0,1
D3D_STARTTEXT `| Cant get this to work!
D3D_BOXTEXT 1, 300,200,400,200,2,2,"Loading Please Wait...." `| Cant get this to work!
D3D_ENDTEXT `| Cant get this to work!
sync `| Cant get this to work!
sync
load object "media\skybox.dbo",2
scale object 2,100000,100000,100000
Position object 2,0,0,0
D3D_MAKE_3DTEXT 501, 1,"Hello and welcome.",depth#,0,1
scale object 501,150,150,150
color object 501,rgb(001,001,001)
position object 501,x#,-6,10
load image "media\snowflake.png",1
Make particles 1,1,2,10
set particle life 1,100
set particle gravity 1,0.5
set particle floor 1,0
position particles 1,-6,51,65
SET PARTICLE VELOCITY 1, 1
make object plane 3,400,100
lock object on 3
position object 3,0,0,300
load image "media\Santa's Sleigh.png",2
texture object 3,2
set object transparency 3,4
do
if mess < 12
if object exist (501)=0 then gosub reassign1
if object exist (502)=0 then gosub reassign2
if object exist (503)=0 then gosub reassign3
else
mess=0
restore messdata
endif
if object exist (501)
move object left 501,scrollspeed#
if object position x(501) < -30 then delete object 501
endif
if object exist (502)
move object left 502,scrollspeed#
if object position x(502) < -30 then delete object 502
endif
if object exist (503)
move object left 503,scrollspeed#
if object position x(503) < -30 then delete object 503
endif
YROTATE OBJECT 2,OBJECT ANGLE Y(2)-0.3
sync
loop
reassign1:
inc mess
read message$
D3D_MAKE_3DTEXT 501, 1,message$,depth#,0,1
scale object 501,150,150,150
color object 501,rgb(001,001,001)
message1size#=OBJECT SIZE X(501)*0.75
message1Xpos#=object position x(501)
message3size#=OBJECT SIZE X(503)*0.75
message3Xpos#=object position x(503)
position object 501, message3Xpos#+message3size#+message1size#+0.5,-6,10
return
reassign2:
inc mess
read message$
D3D_MAKE_3DTEXT 502, 1,message$,depth#,0,1
scale object 502,150,150,150
color object 502,rgb(001,001,001)
message1size#=OBJECT SIZE X(501)*0.75
message1Xpos#=object position x(501)
message2size#=OBJECT SIZE X(502)*0.75
message2Xpos#=object position x(502)
position object 502, message1Xpos#+message1size#+message2size#+0.5,-6,10
return
reassign3:
inc mess
read message$
D3D_MAKE_3DTEXT 503, 1,message$,depth#,0,1
scale object 503,150,150,150
color object 503,rgb(001,001,001)
message2size#=OBJECT SIZE X(502)*0.75
message2Xpos#=object position x(502)
message3size#=OBJECT SIZE X(503)*0.75
message3Xpos#=object position x(503)
position object 503, message2Xpos#+message2size#+message3size#+0.5,-6,10
return
end
messdata:
data "Wishing all my family a Merry Christmas and a Happy New Year"
data "from John, Yuletide greeting to......Chris, Paul and Paula, Nic, Tim"
data "and Ben, Ann and Keith, Lee and June, Tracey, Sean, Lauren and Brittony"
data ", Mark, Caroline, Charlotte and Danielle, Lynda, Robbie, Keith Wiles, Ian,"
data "Sarah, Dennis, Charlie and Demi, Carol, Gary, Emma, Becci, Molli and Lili"
data ", Eddie, Karen, Daniel, Sam, Billy, Jamie and Kelsie, Lynne, Tony, Sue,"
data "................ Wishing you all the best for Christmas and the New Year"
data "and hoping that you enjoyed my little Christmas Scrolling E-Card"
data "that was written entirely in Dark basic by Me, John Keenleyside. "
data "Special thanks to my Honey Princess Rachel for the love and moral support"
data "and please forgive me if I have forgotten anybody as I have a brain like a "
data "Sieve as you all well know ..............................................."
Happy Holidays.