well, i tried to implement for now only rotating by left&right
But i can rotate it only by left
Rem Project: Space
Rem Created: Saturday, December 25, 2010
Rem ***** Main Source File *****
set display mode desktop width(),desktop height(),32
sync rate 60
sync on
ink RGB(0,0,0),RGB(0,0,0)
color backdrop RGB(0,0,0)
Load Object "spaceship2.x",1
load image "planet.jpg",1
make light 1
position light 1,0,1,0
make object sphere 2,70
position object 2,0,0,70
position camera 0,1,0
texture object 2,1
camx as float = 0.0
camy as float = 3.0
camz as float = 2.0
// distance between object and camera
distance as float = 8.0
// the angle of the object
angle as float = 0.0
friction as float = 0.0
height as float = 0.0
add = 0
set global collision on
position mouse desktop width()/2,desktop height()/2
mx=mousex()
my=mousey()
oldmx=mx
oldmy=my
Do
mx=mousex()
my=mousey()
if mx<>oldmx
incangle# = (mx-oldmx)/1000
angle = wrapvalue(angle + incangle#)
endif
`if InKey$()="d" then angle = wrapvalue(angle + 0.02): add = add + 1: roll object right 1,5// okay, so this would be removed xP
`if Inkey$()="a" then angle = wrapvalue(angle - 0.02): add = add - 1: roll object left 1,5
If InKey$()="w" and friction < 0.004 Then friction = friction + 0.00001
If UpKey()=1 Then height = height + 0.01
If DownKey()=1 Then height = height - 0.01
move object 1,friction
If InKey$()="s" Then friction = 0.0008
If friction < 0 Then friction = 0
yrotate object 1, angle
camx = (-sin(angle)*distance)+object position x(1)
camz = (-cos(angle)*distance)+object position z(1)
camy = object position y(1)+3.0
position camera camx, camy, camz
point camera object position x(1), object position y(1)+height, object position z(1)
if object collision(1,2) Then end
sync
loop
Oh. lol. I forgot to add .0 in (mx-oldmx)/1000

all works! Thanks!
Edit@
Aha. I have one, last problem. I cannot get camera to point Y coords, so it looks in same height as the space ship.

.
Edit2@
Solved that one also

Thanks for all the advice BillR!
Cheers!
~Kamac