Here's some code I cut out of the 3D Monster hunt tutorial. It's fairly well documented and should work with either version of DB. Hope it helps.
BTW if this is your first project I would recamend doing most of the tutorials first at least, but it's your choice.
REM NOTE THIS CODE UTILIZES SOME OF THE BUILT IN DB COLLISION IT IS NOT VERY GOOD THOUGH!
REM Refresh rate setup
Autocam off
Hide mouse
Sync ON
Sync Rate 30
REM This was just so I could test the built collision
REM Make shapes in random places
For X = 1 TO 9
Make object cube X,100
Position object X,RND(2000),0,RND(2000)
REM Change this to whatever shape you want
Set object collision to boxes X
Next X
REM Change this to cube or whatever shape youe using
REM Make player sphere
Make object sphere 10,50
Position object 10,-100,0,-100
REM Change this to whatever shape your using
Set object collision to spheres 10
REM Program's main loop
Do
REM YOU WANT TO PAY ATTENTION TOO THIS
REM Store object angle Y in aY#
aY#= Object angle Y(10)
REM YOU WANT TO PAY ATTENTION TOO THIS
REM Control object input
If UpKey()=1 Then move object 10,10
If LeftKey()=1 Then yrotate object 10,wrapvalue(aY#-5)
If RightKey()=1 Then yrotate object 10,wrapvalue(aY#+5)
REM Collision detection
If Object collision(10,0)>0 Then position object 10,X#,0,Z#
REM YOU WANT TO PAY ATTENTION TOO THIS
REM Get player position and store it in Vars X# and Z#
X# = object position x(10)
Z# = object position z(10)
REM YOU WANT TO PAY ATTENTION TOO THIS
REM Get camera position and store it in CZ# and CX#
cZ# = Newzvalue(Z#,aY#-180,100)
cX# = Newxvalue(X#,aY#-180,100)
REM YOU WANT TO PAY ATTENTION TOO THIS
REM Position camera
Position Camera cX#,75,cZ#
REM YOU WANT TO PAY ATTENTION TOO THIS
REM Point camera at the player
Point camera X#,25,Z#
REM End loop and refresh screen
Sync
Loop
Good luck with it!
I've bein driving since the age of three; if you don't belive me ask my parents, you can find them at the county hospital for the mentally imbalanced.