it still just exits after the screen turns black and it doesnt tell me that there are any errors
by the way i am using bark basic classic
here is the updated code
sync on
sync rate 30
load object "c:\harry potter untitled\harrypotter chamber of death.3ds",1
load object "c:\harry potter untitled\harry potter wand.3ds",2
load object "c:\harry potter untitled\harry potter broom color and center.3ds",3
load object "c:\harry potter untitled\harry potter basic hut.3ds",4
load object "c:\harry potter untitled\golden snitcj.3ds",5
load object "c:\harry potter untitled\house table for great hall.3ds",6
make object sphere 7,5
xrotate object 3,9
dim x(1)
dim y(1)
dim z(1)
x(1)= object position x(7) :y(1)=(get ground height(1,x_1#,z_1#)) L:z(1)= object position z(7)
ay_1#=object angle y(7)
control=0
make matrix 1,10000,10000,10,10
position object 1,300,0,300
position object 2,40,10,30
position object 3,70,5,70
position object 4,750,0,500
position object 5,100,7,1000
position object 6,600,100,600
position object 7,100,0,100
fog on
fog distance 1000
fog color rgb(100,100,100)
do
if control=0
camera_movement()
check_collisions()
endif
sync
loop
function camera_movement()
if upkey()=1 then move object 7,3
if downkey()=1 then move object 7,-3
point camera x_1,y_1,z_1
position camera y(1) + 20,z(1) + 20,x(1)
endfunction
function broom_control()
if upkey()=1 then move object 3,3
if downkey()=1 then move object 3,-3
endfunction
function check_collisions()
collision=object collision(3,7)
if collision=1 then control=1
endfunction
ultimate skimmer