I'm still kinda confused. Is this something like you want? If not let me know what needs to be different.
REM update screen
sync on
sync rate 100
REM set ambient light
fog on
fog distance 80
REM color backdrop
color backdrop 0
REM make PLayer
make object cube 1,5
scale object 1,5,5,5
position object 1,0,5.125,-10
color object 1,RGB(232,182,95)
REM player variables
x#=0
y#=5
z#=0
REM make world
make object box 2, 50,10,50
position object 2,0,0,0
color object 2,RGB(146,117,60)
REM position camera
position camera 0,10,-15
REM main loop
do
rotate object 1, object angle x(1)+(mousemovey()/2),object angle y(1)+(mousemovex()/2),0
if object angle x(1)>90 then xrotate object 1, 90
if object angle x(1)<-90 then xrotate object 1, -90
px#=object angle x(1) : py#=object angle y(1)
`WASD player movement
`move forward with w key
if keystate(17)=1 then xrotate object 1,0 : move object 1,.1 : xrotate object 1,px#
`move back with s key
if keystate(31)=1 then xrotate object 1,0 : move object 1,-.1 : xrotate object 1,px#
`move left with a key
if keystate(30)=1 then xrotate object 1,0 : yrotate object 1,(py#-90) : move object 1,.1 : xrotate object 1,px# : yrotate object 1,py#
`move right with d key
if keystate(32)=1 then xrotate object 1,0 : yrotate object 1,(py#-90) : move object 1,-.1 : xrotate object 1,px# : yrotate object 1,py#
position camera object position x(1), object position y(1), object position z(1)
rotate camera 0, py#, 0
move camera -5
position camera camera position x(), camera position y()+2.5, camera position z()
point camera object position x(1), object position y(1), object position z(1)
sync
loop
[edit] or something like this?
REM update screen
sync on
sync rate 100
REM set ambient light
fog on
fog distance 80
REM color backdrop
color backdrop 0
REM make PLayer
make object cube 1,5
scale object 1,5,5,5
position object 1,0,5.125,-10
color object 1,RGB(232,182,95)
REM player variables
x#=0
y#=5
z#=0
REM make world
make object box 2, 50,10,50
position object 2,0,0,0
color object 2,RGB(146,117,60)
REM position camera
position camera 0,10,-15
REM main loop
do
rotate object 1, object angle x(1)+(mousemovey()/2),object angle y(1)+(mousemovex()/2),0
if object angle x(1)>90 then xrotate object 1, 90
if object angle x(1)<-90 then xrotate object 1, -90
px#=object angle x(1) : py#=object angle y(1)
`WASD player movement
`move forward with w key
if keystate(17)=1 then xrotate object 1,0 : move object 1,.1 : xrotate object 1,px#
`move back with s key
if keystate(31)=1 then xrotate object 1,0 : move object 1,-.1 : xrotate object 1,px#
`move left with a key
if keystate(30)=1 then xrotate object 1,0 : yrotate object 1,(py#-90) : move object 1,.1 : xrotate object 1,px# : yrotate object 1,py#
`move right with d key
if keystate(32)=1 then xrotate object 1,0 : yrotate object 1,(py#-90) : move object 1,-.1 : xrotate object 1,px# : yrotate object 1,py#
position camera object position x(1), object position y(1)+5, object position z(1)-10
point camera object position x(1), object position y(1), object position z(1)
sync
loop