that code works but my code doesn't...all i did though was substitute cubes for my models...
[edit] when i compile this code
make object cube 1,10
make object cube 2,5
make mesh from object 1,2
delete object 2
add limb 1,1,1
add limb 1,2,1
xrot=object angle x(1)
yrot=object angle y(1)
zrot=object angle z(1)
move camera 1
do
cam=0
if rightkey()=1 then inc yrot
if leftkey()=1 then dec yrot
if upkey()=1 then inc zrot
if downkey()=1 then dec zrot
if mouseclick()=3
inc cam,mousemovey()
else
inc xrot,mousemovey()
endif
inc yrot,mousemovex()
rotate object 1,xrot,yrot,zrot
move camera cam
loop
there's no error message...when i use this code (loading two .x models i made)
load object "C:Program FilesMilkShape 3D 1.7.2Lawn Mower.x",1
load object "C:Program FilesMilkShape 3D 1.7.2lawn mower wheel.x",2
make mesh from object 1,2
delete object 2
add limb 1,1,1
add limb 1,2,1
xrot=object angle x(1)
yrot=object angle y(1)
zrot=object angle z(1)
move camera 1
do
cam=0
if rightkey()=1 then inc yrot
if leftkey()=1 then dec yrot
if upkey()=1 then inc zrot
if downkey()=1 then dec zrot
if mouseclick()=3
inc cam,mousemovey()
else
inc xrot,mousemovey()
endif
inc yrot,mousemovex()
rotate object 1,xrot,yrot,zrot
move camera cam
loop
it gives me that error message and stops the program
[edit2] here's a program using models that come with DBPro
load object "C:Program FilesDark Basic SoftwareDark Basic ProfessionalMediaModelsAsteroidsAST_01.X",1
load object "C:Program FilesDark Basic SoftwareDark Basic ProfessionalMediaModelsAsteroidsAST_02.X",2
make mesh from object 1,2
delete object 2
add limb 1,1,1
add limb 1,2,1
xrot=object angle x(1)
yrot=object angle y(1)
zrot=object angle z(1)
move camera 1
do
cam=0
if rightkey()=1 then inc yrot
if leftkey()=1 then dec yrot
if upkey()=1 then inc zrot
if downkey()=1 then dec zrot
if mouseclick()=3
inc cam,mousemovey()
else
inc xrot,mousemovey()
endif
inc yrot,mousemovex()
rotate object 1,xrot,yrot,zrot
move camera cam
loop
it also gives an error...so it's not my model's fault
"We make the worst games in the universe."