ok this is what i have.
rem make matrix
make matrix 1,5000.0,5000.0,70,70
load bitmap "grey01.bmp",1
get image 1,0,0,256,256
delete bitmap 1
prepare matrix texture 1,1,2,2
randomize matrix 1,1
Make Object Cube 1,5
Color Object 1,RGB(0,0,0)
Make Object Collision Box 1,-2.5,-2.5,-2.5,2.5,2.5,2.5,0
XPos#=0: YPos#=2.5: ZPos#=0
Position Object 1,0,2.5,0
make Object Box 2,150,50,3
Position Object 2,225,25,0
make Object Collision Box 2,-75,-50,-3,75,50,3,0
make object box 4,150,50,3
position object 4,75,25,0
make object collision box 4,-75,-50,-3,75,50,3,0
rem it is about this one
make object box 5,150,50,3
position object 5,150,25,75
rem rotate it by 90d.
yrotate object 5,90
make object collision box 5,-75,-50,-3,75,50,3,0
rem Activate manual sync
sync on
Do
If Upkey()=1 Then Move Object 1,2
If Downkey()=1 Then Move Object 1,-2
If Leftkey()=1 Then Yrotate Object 1,Wrapvalue(Object Angle Y(1)-4)
If Rightkey()=1 Then Yrotate Object 1,Wrapvalue(Object Angle Y(1)+4)
XPos#=Object Position X(1)
YPos#=Object Position Y(1)
ZPos#=Object Position Z(1)
Rem The sliding collision bit
If Object Collision(1,0)>0
Dec XPos#,Get Object Collision X()
Dec YPos#,Get Object Collision Y()
Dec ZPos#,Get Object Collision Z()
Endif
Position Object 1,XPos#,YPos#,ZPos#
Angle#=Object Angle y(1)
CamDist#=+1.0 : CamHeight#=YPos#+10.0 : Camsmooth#=3.5
Set Camera To Follow XPos#,YPos#,ZPos#,Angle#,CamDist#,CamHeight#,CamSmooth#,0
rem Syncronise
sync
rem End loop
loop
what have i done wrong?