rem load the zatwu
load object "models/Zatwu MKII.3ds",1
position object 1,0,0,500
scale object 1,50,50,50
yrotate object 1,180
load image "images/Zatwu MKII.bmp",1
texture object 1,1
fix object pivot 1
rem make drone to mark a back position
make object sphere 2,10
rem main loop
do
rem handle movement
move object 1,speed : move camera speed
if downkey()=0 then set camera to object orientation 1
if upkey()=0 then set camera to object orientation 1
if leftkey()=0 then set camera to object orientation 1
if rightkey()=0 then set camera to object orientation 1
rem controls
if downkey()=1 then pitch object up 1,5
if upkey()=1 then pitch object down 1,5
if leftkey()=1 then turn object left 1,5:roll object left 1,3
if rightkey()=1 then turn object right 1,5:roll object right 1,3
if inkey$()="z" then roll object left 1,5
if inkey$()="x" then roll object right 1,5
if shiftkey()=1 then speed=speed+1
if controlkey()=1 then speed=speed-1
rem get back position of object for camera
pitch object down 1,11
move object 1,-150
position object 2,object position x(1),object position y(1),object position z(1)
move object 1,150
pitch object up 1,11
rem place camera and set orientation to object
position camera object position x(2),object position y(2),object position z(2)
rem update screen
sync
loop
(NOTE. This is not the entire code just the movement code.)
Dont worry and keep a cool head.