I removed most of the rems from the code. I tried loading the sky file in to another test program. It loads with no errors but it closes automatically. I have the .x file and texture in the same place.
I changed a some of the sky code.
My code with from the program.
Can someone tell me what I'm doing wrong?
sync on
sync rate 60
hide mouse
gosub load_game
gosub setup_game
do
gosub control_player
gosub control_gunandbullet
gosub control_enemies
sync
loop
control_player:
rem player movement
x2# = object position x(2)
y2# = object position y(2)
z2# = object position z(2)
ay2# = object angle y(2)
if upkey()=1 then move object 2,player_speed#
if downkey()=1 then move object 2,-player_speed#
if leftkey()=1 then rotate object 2,0,(ay2#)-3,0
if rightkey()=1 then rotate object 2,0,(ay2#)+3,0
set camera to follow 1,x2#,y2#,z2#,ay2#,5,5,1,1
position object 3,x2#,y2#,z2#
return
control_gunandbullet:
rem gun and ammo
return
control_enemies:
rem enemies control and helth
return
control_stats:
rem helth
return
setup_game:
make object sphere 2,2
position object 2,0,200,1000
player_speed#=20
hide object 2
return
load_game:
load object "C:Documents and SettingscomputerDesktopgame projectworldslevel 1complex.dbo",1
load object "C:Documents and SettingscomputerDesktopgame projectworldslevel 1skydome.x",3
scale object 3,40,40,40
set object cull 3,0
set object light 3,0
set object texture 3,2,1
make camera 1
set camera range 1,100000
autocam off
return
Thanks for your time.
I'll add something later on.