here is some code .
but i have a problem.i used a cylinder a gun.i added a mouse move command and when i test it the mouse moves only horiziontally and not up and down
Rem Project: mukund
Rem Created: 7/14/2006 4:47:12 PM
Rem ***** Main Source File *****
hide mouse
sync rate 40
make matrix 1,10000.0,10000.0,25,25
load object "gun.x",1
xrotate object 1,240
lock object on 1
position object 1,3,-1,2
disable object zdepth 1
color object 1,rgb(255,0,0)
rem load image for matrix
load image "f_temp.bmp",1
prepare matrix texture 1,1,1,1
rem control player movement
do
rem mouse
rotate camera camera angle x(0)+(mousemovey()/2.0),camera angle y(0)+(mousemovex()/2.0),0
cx#=camera angle x(0) : cy#=camera angle y(0)
rem movement-keyboard
control camera using arrowkeys 0,2,1
loop
wait key
end
www.castle.9k.com