I write something simple for you try it and tell me if this is the effect you wanted.I imagine that you are making some side roller like supermario or something, but in 3D.I would use camera like this for exactly same thing.
sync on : sync rate 60
set display mode 640,480,32
make camera 1
x# = 0.0
y# = 0.0
z# = -1000.0
position camera 1,x#,y#,z#
point camera 1,0,0,0
make object cube 1,100
position object 1,0,0,0
do
text 0,0,"fps:"+str$(screen fps())
`control camera using arrowkeys 1,1,1
if keystate(200)=1
y#=y#+1
position camera 1,x#,y#,z#
endif
if keystate(208)=1
y#=y#-1
position camera 1,x#,y#,z#
endif
if keystate(203)=1
x#=x#-1
position camera 1,x#,y#,z#
endif
if keystate(205)=1
x#=x#+1
position camera 1,x#,y#,z#
endif
sync
loop
end
Because i have some free time now i did it for you but read the code and try to imagine it in your head as it`s you that writed it.It`s really not that hard at all to do it yourself.
Where there is a will, there is a way.
I often edit my posts, that`s who i am