Okay. So. Here's this so far. level.x is a simple flat terrain.
sync on
sync rate 60
ai start
make object cube 1,2
position object 1,10,10,0
load object "level.x",2
position object 2,0,0,0
scale object 2,400,400,400
do
if keystate(17)=1 then move object 1,1
if keystate(30)=1 then turn object left 1,2
if keystate(31)=1 then move object 1,-1
if keystate(32)=1 then turn object right 1,2
position camera object position x(1),object position y(1),object position z(1)
rotate camera 0,camera angle x(0),object angle y(1),camera angle z(0)
sync
ai update
loop
end
My problem is, whenever I press any of WASD, which are correctly mapped, sometimes the game screen flickers and all the controls are reversed? I had this problem once before but I don't remember if I ever fixed it. Anyone know how?