How can I make the camera follow the ship just like a flight simulator? I tryed some ways but is the first time i am using darkbasic... and programming in general #)
Thanks,
João
sync on : sync rate 0 : hide mouse : color backdrop rgb(100,100,255)
set text transparent : set text font "Arial" : set text size 20
rem load a model in center of world
load object "Ship.X",51
set object collision to polygons 51
rem scale object 51,1500,1500,1500
position object 51,0,40,0
xrotate object 51,270
rem texture object 51,3
rem scale object texture 51,5,5
rem set object speed 51,100
loop object 51
rem setup camera and lights
set point light 0,0,0,0
make light 1 : set point light 1,0,0,0 : color light 1,255,-100,-100
SET CAMERA TO OBJECT ORIENTATION 51
rotate camera 100,100,-500
rem loop
do
rem control camera
control camera using arrowkeys 0,1,2
rem update screen
sync
rem end loop
loop