Here ya go, this will help you
Sync On
Sync Rate 40
rem Make a cube
Make Object Cube 1,10
rem Make it blue
color object 1,rgb(0,0,255)
rem Make a plain (as a ground)
Make object plain 2,200,200
rem Its standing right up, so lets xrotate it
Xrotate object 2,90
rem Lets use a variable to store the camera height
height=30
do
rem Player Controls
if upkey()=1 then move object 1,1
rem Mouse Look
yrotate object 1,wrapvalue(object angle y(1)+mousemovex())
rem Now, lets put the camera behind the player
rem using Math instead of "new.value"
rem -This will put the camera 50 units behind the cube-
cam_x#=object position x(1)+sin(wrapvalue(object angle y(1)+180))*50
cam_z#=object position z(1)+cos(wrapvalue(object angle y(1)+180))*50
rem Before we position the camera behind the guy, we need to adjust the height
height=height+mousemovey()
rem Okay,lets position it
position camera cam_x#,object position y(1)+height,cam_z#
rem The camera should point at the cube
point camera object position x(1),object position y(1),object position z(1)
rem the player should stay on the plain
position object 1,object position x(1),object position y(2)+5,object position z(1)
rem Refresh the screen
sync
loop
Quote: "
Amd 2500+ | 1024mb pc2700 | A7N8X-X | Geforce4 ti 4200 128mb"