make matrix 1, 100, 100, 100, 100
position camera 50, 3, 50
do
set cursor 0, 0
if UPKEY() = 1 then move camera 1
if DOWNKEY() = 1 then move camera -1
if leftkey() = 1 then turn camera left 1
if rightkey() = 1 then turn camera right 1
loop
by default the camera starts off looking down slightly at the 0,0,0 position, to stop yourself submerging under the ground as you move forwards, set the camera level like this
autocam off:rem stops the camera pointing at anything you may create on the level
position camera 50,3,50
point camera 51,3,51:rem this makes the camera point level to the z plain by pointing one world unit away at the same height
and inkey$() returns the string value of the keys on the keyboard, so inkey$() returns "d" when you press the "d" key, or " " when you press the space key, you have to use the other commands to read keys like F1 or home that don`t have visible characters (like upkey for example), cheers.
Mentor.