Your main loop is missing a Sync. Hence nothing after the "Loading..." is ever drawn (because you set
sync on in the beginning (line 9) you have to call the
sync command manually - if
sync on wasn't set, DBP would do that automatically at the end of each do/loop, repeat/until or while/endwhile cycle). Also, in the code you've just posted, the function definition of screenprint() is missing.
I altered the code by adding the sync to your main menu loop and the function declaration to the very bottom, and it works just as expected:
REM *** START SYSTEM SETUP SECTION
autocam on
sync off
REM *** STOP SYSTEM SETUP SECTION
REM *****************************************
rem main menu
screenprint("loading")
MainMenu:
sync on
sync rate 30
do
cls
ink rgb(255,255,255),0
text 0,100,"NEW GAME"
text 0,130,"HOW TO PLAY"
text 0,160,"QUIT"
`NEW GAME
if mousex() > 0 and mousex() < 100 and mousey() > 100 and mousey() < 120 then ink rgb(0,0,100),0 : text 0,100,"NEW GAME"
if mousex() > 0 and mousex() < 100 and mousey() > 100 and mousey() < 120 and mouseclick()=1 then gosub loadall
`HOW TO PLAY
if mousex() > 0 and mousex() < 100 and mousey() > 130 and mousey() < 180 then ink rgb(0,0,100),0 : text 0,130,"HOW TO PLAY"
if mousex() > 0 and mousex() < 100 and mousey() > 130 and mousey() < 180 and mouseclick()=1 then text 100,130,"YOU CLICKED OPTIONS"
`QUIT
if mousex() > 0 and mousex() < 100 and mousey() > 160 and mousey() < 210 then ink rgb(0,0,100),0 : text 0,160,"QUIT"
if mousex() > 0 and mousex() < 100 and mousey() > 160 and mousey() < 210 and mouseclick()=1 then end
sync
loop
loadall:
remstart
load image "E:\new edutainment project\images\arrow key.bmp",2
load image "E:\new edutainment project\images\NUMBERS\1.jpg",1
load image "E:\new edutainment project\images\NUMBERS\2.jpg",200
load image "E:\new edutainment project\images\NUMBERS\3.jpg",3
load image "E:\new edutainment project\images\NUMBERS\4.jpg",4
load image "E:\new edutainment project\images\NUMBERS\5.jpg",5
load image "E:\new edutainment project\images\NUMBERS\6.jpg",6
load image "E:\new edutainment project\images\NUMBERS\7.jpg",7
load image "E:\new edutainment project\images\NUMBERS\8.jpg",8
load image "E:\new edutainment project\images\NUMBERS\9.jpg",9
load image "E:\new edutainment project\images\NUMBERS\10.jpg",10
load image "E:\new edutainment project\images\NUMBERS\11.jpg",11
load image "E:\new edutainment project\images\NUMBERS\12.jpg",12
load image "E:\new edutainment project\images\NUMBERS\13.jpg",13
load image "E:\new edutainment project\images\NUMBERS\14.jpg",14
load image "E:\new edutainment project\images\NUMBERS\15.jpg",15
load image "E:\new edutainment project\images\NUMBERS\16.jpg",16
load image "E:\new edutainment project\images\NUMBERS\17.jpg",17
load image "E:\new edutainment project\images\NUMBERS\18.jpg",18
load image "E:\new edutainment project\images\NUMBERS\19.jpg",19
load image "E:\new edutainment project\images\NUMBERS\20.jpg",20
load image "E:\new edutainment project\images\NUMBERS\20.jpg",20
load image "E:\new edutainment project\images\NUMBERS\21.jpg",21
load image "E:\new edutainment project\images\NUMBERS\22.jpg",22
load image "E:\new edutainment project\images\NUMBERS\23.jpg",23
load image "E:\new edutainment project\images\FP Brighter.bmp",100
remend
wait 200
screenprint("5%")
rem 1st rotate cube
make object cube 65,10
texture object 65,2
position object 65,-210,100,300
make mesh from object 1,65
add limb 65,1,1
scale limb 65,1,100,1000,0
show limb 65,1
offset limb 65,1,0,20,0
make object from limb 1000,65,1,1
position object 1000,-210,100,300
remove limb 65,1
hide object 1000
rem 2nd rotate cube
make object cube 66,10
texture object 66,2
position object 66,-110,100,300
make mesh from object 1,66
add limb 66,1,1
scale limb 66,1,100,1000,0
show limb 66,1
offset limb 66,1,0,20,0
make object from limb 1001,66,1,1
position object 1001,-110,100,300
remove limb 66,1
hide object 1001
rem 3rd rotate cube
make object cube 67,10
texture object 67,2
position object 67,-10,100,300
make mesh from object 1,67
add limb 67,1,1
scale limb 67,1,100,1000,0
show limb 67,1
offset limb 67,1,0,20,0
make object from limb 1002,67,1,1
position object 1002,-10,100,300
remove limb 67,1
hide object 1002
screenprint("10%")
rem 4th rotate cube
make object cube 68,10
texture object 68,2
position object 68,90,100,300
make mesh from object 1,68
add limb 68,1,1
scale limb 68,1,100,1000,0
show limb 68,1
offset limb 68,1,0,20,0
make object from limb 1003,68,1,1
position object 1003,90,100,300
remove limb 68,1
hide object 1003
rem 5th rotate cube
make object cube 69,10
texture object 69,2
position object 69,-260,50,300
make mesh from object 1,69
add limb 69,1,1
scale limb 69,1,100,1000,0
show limb 69,1
offset limb 69,1,0,20,0
make object from limb 1004,69,1,1
position object 1004,-260,50,300
remove limb 69,1
hide object 1004
rem 6th rotate cube
make object cube 70,10
texture object 70,2
position object 70,-160,50,300
make mesh from object 1,70
add limb 70,1,1
scale limb 70,1,100,1000,0
show limb 70,1
offset limb 70,1,0,20,0
make object from limb 1005,70,1,1
position object 1005,-160,50,300
remove limb 70,1
hide object 1005
screenprint("15%")
rem 7th rotate cube
make object cube 71,10
texture object 71,2
position object 71,-60,50,300
make mesh from object 1,71
add limb 71,1,1
scale limb 71,1,100,1000,0
show limb 71,1
offset limb 71,1,0,20,0
make object from limb 1006,71,1,1
position object 1006,-60,50,300
remove limb 71,1
hide object 1006
rem 8th rotate cube
make object cube 72,10
texture object 72,2
position object 72,40,50,300
make mesh from object 1,72
add limb 72,1,1
scale limb 72,1,100,1000,0
show limb 72,1
offset limb 72,1,0,20,0
make object from limb 1007,72,1,1
position object 1007,40,50,300
remove limb 72,1
hide object 1007
rem 9th rotate cube
make object cube 73,10
texture object 73,2
position object 73,140,50,300
make mesh from object 1,73
add limb 73,1,1
scale limb 73,1,100,1000,0
show limb 73,1
offset limb 73,1,0,20,0
make object from limb 1008,73,1,1
position object 1008,140,50,300
remove limb 73,1
hide object 1008
screenprint("20%")
rem 10th rotate cube
make object cube 74,10
texture object 74,2
position object 74,-210,0,300
make mesh from object 1,74
add limb 74,1,1
scale limb 74,1,100,1000,0
show limb 74,1
offset limb 74,1,0,20,0
make object from limb 1009,74,1,1
position object 1009,-210,0,300
remove limb 74,1
hide object 1009
rem 11th rotate cube
make object cube 75,10
texture object 75,2
position object 75,-110,0,300
make mesh from object 1,75
add limb 75,1,1
scale limb 75,1,100,1000,0
show limb 75,1
offset limb 75,1,0,20,0
make object from limb 1010,75,1,1
position object 1010,-110,0,300
remove limb 75,1
hide object 1010
rem 12th rotate cube
make object cube 76,10
texture object 76,2
position object 76,-10,0,300
make mesh from object 1,76
add limb 76,1,1
scale limb 76,1,100,1000,0
show limb 76,1
offset limb 76,1,0,20,0
make object from limb 1011,76,1,1
position object 1011,-10,0,300
remove limb 76,1
hide object 1011
screenprint("25%")
rem 13th rotate cube
make object cube 77,10
texture object 77,2
position object 77,90,0,300
make mesh from object 1,77
add limb 77,1,1
scale limb 77,1,100,1000,0
show limb 77,1
offset limb 77,1,0,20,0
make object from limb 1012,77,1,1
position object 1012,90,0,300
remove limb 77,1
hide object 1012
rem 14th rotate cube
make object cube 78,10
texture object 78,2
position object 78,-260,-50,300
make mesh from object 1,78
add limb 78,1,1
scale limb 78,1,100,1000,0
show limb 78,1
offset limb 78,1,0,20,0
make object from limb 1013,78,1,1
position object 1013,-260,-50,300
remove limb 78,1
hide object 1013
rem 15th rotate cube
make object cube 79,10
texture object 79,2
position object 79,-160,-50,300
make mesh from object 1,79
add limb 79,1,1
scale limb 79,1,100,1000,0
show limb 79,1
offset limb 79,1,0,20,0
make object from limb 1014,79,1,1
position object 1014,-160,-50,300
remove limb 79,1
hide object 1014
screenprint("30%")
rem 16th rotate cube
make object cube 80,10
texture object 80,2
position object 80,-60,-50,300
make mesh from object 1,80
add limb 80,1,1
scale limb 80,1,100,1000,0
show limb 80,1
offset limb 80,1,0,20,0
make object from limb 1015,80,1,1
position object 1015,-60,-50,300
remove limb 80,1
hide object 1015
rem 17th rotate cube
make object cube 81,10
texture object 81,2
position object 81,40,-50,300
make mesh from object 1,81
add limb 81,1,1
scale limb 81,1,100,1000,0
show limb 81,1
offset limb 81,1,0,20,0
make object from limb 1016,81,1,1
position object 1016,40,-50,300
remove limb 81,1
hide object 1016
rem 18th rotate cube
make object cube 82,10
texture object 82,2
position object 82,140,-50,300
make mesh from object 1,82
add limb 82,1,1
scale limb 82,1,100,1000,0
show limb 82,1
offset limb 82,1,0,20,0
make object from limb 1017,82,1,1
position object 1017,140,-50,300
remove limb 82,1
hide object 1017
screenprint("35%")
rem 19th rotate cube
make object cube 83,10
texture object 83,2
position object 83,-210,-100,300
make mesh from object 1,83
add limb 83,1,1
scale limb 83,1,100,1000,0
show limb 83,1
offset limb 83,1,0,20,0
make object from limb 1018,83,1,1
position object 1018,-210,-100,300
remove limb 83,1
hide object 1018
rem 20th rotate cube
make object cube 84,10
texture object 84,2
position object 84,-110,-100,300
make mesh from object 1,84
add limb 84,1,1
scale limb 84,1,100,1000,0
show limb 84,1
offset limb 84,1,0,20,0
make object from limb 1019,84,1,1
position object 1019,-110,-100,300
remove limb 84,1
hide object 1019
screenprint("40%")
rem 21st rotate cube
make object cube 85,10
texture object 85,2
position object 85,-10,-100,300
make mesh from object 1,85
add limb 85,1,1
scale limb 85,1,100,1000,0
show limb 85,1
offset limb 85,1,0,20,0
make object from limb 1020,85,1,1
position object 1020,-10,-100,300
remove limb 85,1
hide object 1020
rem 22nd rotate cube
make object cube 86,10
texture object 86,2
position object 86,90,-100,300
make mesh from object 1,86
add limb 86,1,1
scale limb 86,1,100,1000,0
show limb 86,1
offset limb 86,1,0,20,0
make object from limb 1021,86,1,1
position object 1021,90,-100,300
remove limb 86,1
hide object 1021
screenprint("45%")
rem first row
for t=2 to 6
make object cube t,20
position object t,-360+(t-1)*100,100,300
make mesh from object 1,t
add limb t,1,1
scale limb t,1,100,100,100
next t
rem second row
for t=7 to 10
make object cube t,20
position object t,-310+(t-6)*100,50,300
make mesh from object 1,t
add limb t,1,1
scale limb t,1,100,100,100
next t
screenprint("50%")
rem third row
for t=11 to 15
make object cube t,20
position object t,-360+(t-10)*100,0,300
make mesh from object 1,t
add limb t,1,1
scale limb t,1,100,100,100
next t
screenprint("55%")
rem fourth row
for t=16 to 19
make object cube t,20
position object t,-310+(t-15)*100,-50,300
make mesh from object 1,t
add limb t,1,1
scale limb t,1,100,100,100
next t
rem fifth row
for t=20 to 24
make object cube t,20
position object t,-360+(t-19)*100,-100,300
make mesh from object 1,t
add limb t,1,1
scale limb t,1,100,100,100
next t
screenprint("60%")
rem texture cubes
texture object 2,1
texture object 3,200
for t=4 to 23
texture object t,t-1
next t
rem texture cubes
rem lvl one walls
rem north wall
make object box 45,445,220,0
position object 45,-60,0,311
color object 45,rgb(0,255,0)
texture object 45,100
screenprint("65%")
rem east wall
make object box 46,615,220,5
position object 46,162,0,2
color object 46,rgb(0,255,0)
yrotate object 46,90
texture object 46,100
rem top wall
make object box 47,445,615,5
position object 47,-60,110,0
rotate object 47,90,0,0
color object 47,rgb(0,200,0)
texture object 47,100
screenprint("70%")
rem south wall
make object box 48,445,220,0
position object 48,-60,0,-308
color object 48,rgb(0,255,0)
texture object 48,100
rem west wall
make object box 49,615,220,5
position object 49,-280,0,0
color object 49,rgb(0,255,0)
yrotate object 49,90
texture object 49,100
screenprint("75%")
rem floor wall
make object box 50,445,615,5
position object 50,-60,-110,0
rotate object 50,90,0,0
color object 50,rgb(0,200,0)
texture object 50,100
rem runway
make object box 51,1380,400,0
rotate object 51,90,0,0
position object 51,406,-110,-501
screenprint("80%")
rem runway
make object box 92,1380,400,0
rotate object 92,90,0,0
position object 92,406,-110,-501
REM LVL 2 WALLS
rem north wall
make object box 52,445,220,0
position object 52,-60,0,311-1010
color object 52,rgb(0,255,0)
texture object 52,100
rem east wall
make object box 53,615,220,5
position object 53,162,0,2-1010
color object 53,rgb(0,255,0)
yrotate object 53,90
texture object 53,100
rem top wall
make object box 54,445,615,5
position object 54,-60,110,-1010
rotate object 54,90,0,0
color object 54,rgb(0,200,0)
texture object 54,100
rem south wall
make object box 55,445,220,0
position object 55,-60,0,-308-1010
color object 55,rgb(0,255,0)
texture object 55,100
rem west wall
make object box 56,615,220,5
position object 56,-280,0,-1010
color object 56,rgb(0,255,0)
yrotate object 56,90
texture object 56,100
screenprint("85%")
rem floor wall
make object box 57,445,615,5
position object 57,-60,-110,-1010
rotate object 57,90,0,0
color object 57,rgb(0,200,0)
texture object 57,100
rem lvl 3
make object box 58,445,220,0
position object 58,-60+935,0,311-1010
color object 58,rgb(0,255,0)
texture object 58,100
rem east wall
make object box 59,615,220,5
position object 59,162+935,0,2-1010
color object 59,rgb(0,255,0)
yrotate object 59,90
texture object 59,100
rem top wall
make object box 60,445,615,5
position object 60,-60+935,110,-1010
rotate object 60,90,0,0
color object 60,rgb(0,200,0)
texture object 60,100
rem south wall
make object box 61,445,220,0
position object 61,-60+935,0,-308-1010
color object 61,rgb(0,255,0)
texture object 61,100
screenprint("90%")
rem west wall
make object box 62,615,220,5
position object 62,-280+935,0,-1010
color object 62,rgb(0,255,0)
yrotate object 62,90
texture object 62,100
rem floor wall
make object box 63,445,615,5
position object 63,-60+935,-110,-1010
rotate object 63,90,0,0
color object 63,rgb(0,200,0)
texture object 63,100
rem lvl 4
make object box 64,445,220,0
position object 64,-60+935,0,311
color object 64,rgb(0,255,0)
texture object 64,100
rem east wall
make object box 87,615,220,5
position object 87,162+935,0,2
color object 87,rgb(0,255,0)
yrotate object 87,90
texture object 87,100
screenprint("95%")
rem top wall
make object box 88,445,615,5
position object 88,-60+935,110,0
rotate object 88,90,0,0
color object 88,rgb(0,200,0)
texture object 88,100
rem south wall
make object box 89,445,220,0
position object 89,-60+935,0,-308
color object 89,rgb(0,255,0)
texture object 89,100
rem west wall
make object box 90,615,220,5
position object 90,-280+935,0,0
color object 90,rgb(0,255,0)
yrotate object 90,90
texture object 90,100
rem floor wall
make object box 91,445,615,5
position object 91,-60+935,-110,0
rotate object 91,90,0,0
color object 91,rgb(0,200,0)
texture object 91,100
screenprint("100%")
end
function screenprint(s$)
cls
ink rgb(255,255,255),0
print s$
sync
endfunction
