Ok the problem was you stored the positions of the camera, then moved the camera, and then positioned the camera back where it started,now i have roughly fixed the code so it functions but to make it neater see my version below (also i dont use turn object left and right as i have known them to cause problems).
autocam off
make matrix 1,100,100,5,5
camx#=12.5
camy#=5
camz#=.4
position camera camx#,5,camz#
do
a#=0.75
camy#=camera position y()
camangy#=camera angle y()
`control player
if upkey()=1
move camera a#
endif
if keystate(20)=1
camy#=camy#+.1
endif
if keystate(17)=1
move camera 5
endif
if downkey()=1
move camera -a#
endif
if keystate(31)=1
move camera -5
endif
if leftkey()=1
turn camera left .5
endif
if keystate(30)=1
turn camera left .5
endif
if keystate(32)=1
turn camera right .5
endif
if rightkey()=1
turn camera right .5
endif
camx#=camera position x()
camz#=camera position z()
position camera camx#,camy#,camz#
loop
Your Version with the rotate command
`Your code with the rotate command`
autocam off
make matrix 1,100,100,5,5
camx#=12.5
camy#=5
camz#=0.4
position camera camx#,5,camz#
do
a#=0.75
camx#=camera position x()
camy#=camera position y()
camz#=camera position z()
camangy#=camera angle y()
`control player
if keystate(20)=1
camy#=camy#+0.1
position camera camx#,camy#,camz#
endif
if upkey()=1
move camera a#
endif
if keystate(17)=1
move camera 5
endif
if downkey()=1
move camera -a#
endif
if keystate(31)=1
move camera -5
endif
if leftkey()=1 or keystate(30)=1
yrotate camera camangy#-0.5
endif
if rightkey()=1 or keystate(32)=1
yrotate camera camangy#+0.5
endif
loop
or how bout the super short version !
`Your code neatened alot !`
autocam off
make matrix 1,100,100,5,5
position camera 12.5,5,0.4
do
if keystate(20)=1 then position camera camera position x(),camera position y()+0.1,camera position z()
if upkey()=1 or keystate(17)=1 then move camera 5
if downkey()=1 or keystate(31)=1 then move camera -5
if leftkey()=1 or keystate(30)=1 then yrotate camera camera angle y()-0.5
if rightkey()=1 or keystate(32)=1 then yrotate camera camera angle y()+0.5
loop
Hope it helps