@travis gatlin
Quote: "ok here is 2 simple codes (dont include quotations) "
Quote: "if you find ANY errors please tell me ok?"
if 5+5=10 then pitch object down 1,2
DO
"if 2+2=4 then move object 1,10"
LOOP
You asked for info on errors with the code, so here goes:
1) No "Sync On" command, no "Sync" at the end of the loop. The screen will not refresh often, and the program will appear to stutter.
2)You refer to object one, but this object does not exist. You need to add "Make Object Sphere 1, 1" at the top of your code (or something similar - cube, cuboid, you could even call "Load Object" and use one of the sample aeroplane models.)
3) "if 5+5=10 then..." Generally speaking, we know that 5+5 = 10. So why have the computer do a useless calculation? You could just free up processing power and simply say "pitch object down 1,2". There's no need for an If..then statement.
4) The program accepts no user input. That's not a problem if your flightsim has an aircraft running on autopilot, but that's not always much fun. It would be better if you used something like "If Upkey() = 1 then...".
So, to wrap it up, try something like:
Sync On
Make Object Sphere 1, 1
DO
move object 1,1
If Upkey() = 1 then pitch object up 1,2
If Downkey() = 1 then pitch object down 1,2
rem Camera control
Position Camera Object Position X(1), Object Position Y(1), Object Position Z(1)
Point Camera Object Position X(1), Object Position Y(1), Object Position Z(1)
Move Camera -5
Sync
LOOP
Try looking at the sample programs that come with DBC (open the help page for "Pitch Object UP" or something similar, and click on the exmaple program. It'll show you a basic flight-sim and how you control a 3d object. The rest is up to you. Good Luck!
Edit: Whoops, pressed Post too soon. Sorry!
"I wish I was a spaceman, the fastest guy alive. I'd fly you round the universe, in Fireball XL5..."