thanks for that baxslash, nice mini tutorial there, well I've been trying to think on this, and I think I'd like to build a small 3d rpg game, based on the middle ages (old idea I know) because that would teach me about 3d, text commands, modelling, sound commands, player input, and many other things, I've made a very basic camera, that works really well, I'd need to make modifications to make it work for a rpg, but its still a nice bit of code, so I think I'll start on that
camera code:
Rem Project: rts cam
Rem Created: Monday, November 29, 2010
Rem ***** Main Source File *****
rem setup sync rate
sync rate 60
sync on
rem make a matrix for the ground
mapsize=1024
make matrix 1,mapsize,mapsize,16,16
//load image "media\terrain.bmp",1
//prepare matrix texture 1,1,4,4
rem color background black
color backdrop 0
rem setup camera
xrotate camera 60
scrollspeed=5
camx#=512
camz#=512
do
rem player camera controls
if camx#<mapsize-120 and mousex()>screen width()-10 then inc camx#,scrollspeed
if camx#>120 and mousex()<10 then dec camx#,scrollspeed
if camz#<mapsize-200 and mousey()<10 then inc camz#,scrollspeed
if camz#>-20 and mousey()>screen height()-10 then dec camz#,scrollspeed
rem position camera
position camera camx#,200,camz#
sync
loop
//load image "media\terrain.bmp",1
//prepare matrix texture 1,1,4,4
commented this out for the sake of if you use it