I tried your code... but i cant make it work the way I want in my game!!
This is what it looks like right now:
sync on : sync rate 60
make matrix 1,1000,1000,10,10
make object cube 1,4
do
ya1#=ya1#+mousemovex()
x1#=object position x(1)
y1#=object position y(1)
z1#=object position z(1)
ay1#=object angle y(1)
set camera to follow x1#,y1#,z1#,ay1#,15,7,3,1
if upkey()=1 then move object 1,0.5
if downkey()=1 then move object 1,-0.5
if leftkey()=1 then rotate object 1,0,(ay1#)-1,0
if rightkey()=1 then rotate object 1,0,(ay1#)+1,0
sync
loop
I rotate with the arrowkeys... but i want to rotate using the mouse....
GICO