if you want a code for 3rd person with a matrix, here you go.
i've made alot of rem for explaining all of the command. but it will help me if you tell me what do u know in dark basic because maybe you already know most of the things in the program.
rem here is the first command called sync on. this command is used to do
rem a mannual sync. its very important in each game. the sync command will be
rem used in the main loop.
sync on
sync rate 50
rem sync rate is used to get the average fps (frame per second) of the screen.
rem now, we will make our object with then make object box command.
make object box 1,5,5,5
rem it takes the object number thats is 1 the x size, y size and z size. thats is 5
rem now the terrain.
make matrix 1,100,100,10,10
rem the make matrix command need the matrix number, the xtile and the ztile that
rem get the size of the terrain. it take x segment et z segment, too. here, its 10
rem now that we have that, u need to place your main loop. start with the command
rem do to start the loop.
do
x# = object position x(1)
y# = object position y(1)
z# = object position z(1)
ay# = object angle y(1)
rem the x#, y#, z# and ay# are called variable. it hold some data on smaller space.
rem the object position x, y, z and object angle y is, like in the name, the current
rem position of the object number 1 that are set in the (). here, its (1). now, you
rem need to set the camera, with the set camera to follow command. the command need
rem 8 variable. the position x, y, z, the angle y, the distance, height, smooth and
rem the collision. here, we will use the last variable we set for the position things.
rem the distance will be 15 so we can see well the character and with the height, 10,
rem we will see the character higher. for the smooth, i set 10, so there a little of
rem smooth in the camera (try changing the number in the smooth value to 100.),
rem and the collision is 1 too, but its mean that it will detect if there a collision.
set camera to follow x#, y#, z#, ay#, 15, 10, 10, 1
if upkey()=1 then move object 1,1
if downkey()=1 then move object 1,-1
if leftkey()=1 then turn object left 1,3
if rightkey()=1 then turn object right 1,3
rem now the moving character: the upkey downkey etc... need to have () at the end.
rem here, there an =1 at the end because its to have a return value of the command.
rem ex: if upkey()=1 then print "button pressed". if downkey()=0 then print "button not pressed"
rem then move object need the object number, and the speed value. if you want to go back,
rem use a negative value for the speed. the turn object left or right command need the objnum
rem and the turning speed. and for the end, the sync command need to be at the end of
rem a loop, just before the loop command, wich close the looping. if you don't use sync
rem at the end of the loop, you'll have a black screen, just try and see.
sync
loop
I hope it helped and you can in any time call me for help
Windows XP,pentium IIII, 1,9 MGZ, 256 mb memory, 128 mb video card ATI Radeon 9200 se s80 'sett squadron back on the assault'