ok it wont let me edit yet because i still have to have my posts verified and editing wont work so i apologize for the double post. i just got dark basic pro and i have changed my code, but the same question still stands on how to use the mouse to rotate the camera. thanks
World=1
Size=100
Segments=10
make matrix World,Size,Size,Segments,Segments
randomize matrix World,3
update matrix World
hero=1
make object cube hero,1
position object Hero,rnd(20),1,rnd(20)
do
`Here are our variables for the Hero. These are just position values
x1#=object position x(Hero)
z1#=object position z(Hero)
y1#=get ground height(World,x1#,z1#)
ay1#=object angle y(Hero)
HeroMoveSpeed#=.5
HeroRotateSpeed#=.5
`This keeps us within the boundaries of our map.
if x1#>Size then x1#=x1#-1
if x1#<0 then x1#=0
if z1#>Size then z1#=z1#-1
if z1#<0 then z1#=0
`Set the camera to follow our Hero.
set camera to follow x1#,y1#,z1#,ay1#,30,10,1,1
position object Hero,x1#,y1#,z1#
if upkey()=1 then move object Hero,HeroMoveSpeed#
if downkey()=1 then move object Hero,-HeroMoveSpeed#
if leftkey()=1 then yrotate object Hero,ay1#-HeroRotateSpeed#
if rightkey()=1 then yrotate object Hero,ay1#+HeroRotateSpeed#
sync
loop