Ive fixed it but thanks anyway.
i fixed it with "automatic collision 1,10,1"
heres my code if theres anything that could be done easier please help me
I know its a mess but ive just started,also im using pro
thanks
sync on
sync rate 60
backdrop on
make matrix 1,1000,1000,10,10
load image "wood1.bmp",2
load object "colz.3ds",1
position object 1,200,0,200
scale object 1,40,40,40
load image "001.jpg",1
texture object 1,1
make object cube 2,35
position object 2,300,10,300
prepare matrix texture 1,2,1,1
load image "089.jpg",3
texture object 2,3
make object BOX 3,50,500,1000
automatic object collision 1,10,1
position object 3,1000,250,500
make object box 4,50,500,1000
position object 4,-17,250,500
make object box 5,1000,500,50
position object 5,500,250,1000
do
x#=camera position x()
y#=camera position y()
z#=camera position z()
set cursor 0,0
print x#
print y#
print z#
x1#=object position x(1)
y1#=object position y(1)
z1#=object position z(1)
ay1#=object angle y(1)
set camera to follow x1#,y1#,z1#,ay1#,100,100,10,1
if shiftkey()
pitch camera up 50
move camera 1
pitch camera down 50
endif
if controlkey()
pitch camera up 50
move camera -1
pitch camera down 50
endif
if spacekey()
turn camera left 10
endif
If upkey()=1 then move object 1,5
if downkey()=1 then move object 1,-5
if leftkey()=1 then rotate object 1,0,(ay1#)-1,0
if rightkey()=1 then rotate object 1,0,(ay1#)+1,0
sync
set cursor 0,0
print x#
print y#
print z#
loop