Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / [LOCKED] if you want to make an airplane game but you dont know how to make the flying seem realistic look at this!

Author
Message
Travis Gatlin
16
Years of Service
User Offline
Joined: 14th May 2009
Location: Oxford, Alabama
Posted: 5th Jun 2009 02:28 Edited at: 8th Jun 2009 00:52
hello here is a few codes for those who want to make an airplane game but you dont know how to make the flying seem realistic. ok
look at the 9th post on this tread

the modern government tries to make time,into money that is why clock are not free! in theory time is actually money!
Conor B
20
Years of Service
User Offline
Joined: 10th May 2005
Location: Dublin, Ireland
Posted: 5th Jun 2009 02:44
Why do you have conditions if they will always be true. Your 'codes' to offer are
*pitch object down 1, 1
*move object 1, 10
Sorry but I don't see how this is anything to do with a flight sim.

There are 10 types of people, people who know binary and people who don't!
Yodaman Jer
User Banned
Posted: 5th Jun 2009 02:44
Dude...change your location!

Not only that, but do you have any proof that this works?


Click to go to our website!
BN2 Productions
21
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 5th Jun 2009 02:47 Edited at: 5th Jun 2009 02:48
That seems to only move an object straight forward every loop. Am I missing something here? And I second, please change your location.

Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose
That1Smart Guy
16
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 5th Jun 2009 03:21
i got u all beat, i have 3 comments:

-why did you post this, no offense intended but its pretty simple

-why put the always true conditions

-yeah change your location

PWWWWNED!!

There are only 10 kinds of people in the world, those who understand binary and those who dont
BN2 Productions
21
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 5th Jun 2009 08:09
Quote: "PWWWWNED!!"


Number 6: http://forum.thegamecreators.com/?m=forum_view&b=10&t=116024&p=0

Sorry, but as much as the post may be basic, you still must be respectful smart guy. As I recall, you had a bit of a pointless post yourself: http://forum.thegamecreators.com/?m=forum_view&t=146179&b=10

Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose
Robert The Robot
18
Years of Service
User Offline
Joined: 8th Jan 2007
Location: Fireball XL5
Posted: 5th Jun 2009 16:20 Edited at: 5th Jun 2009 16:24
@travis gatlin
Quote: "ok here is 2 simple codes (dont include quotations) "

Quote: "if you find ANY errors please tell me ok?"




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:



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..."
Travis Gatlin
16
Years of Service
User Offline
Joined: 14th May 2009
Location: Oxford, Alabama
Posted: 5th Jun 2009 20:11
i know i had a pointles post i was just bored

if somthing is impossible wil it hurt to try?
That1Smart Guy
16
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 5th Jun 2009 20:16
well dont it is against forum rules and bn2 i didnt realize that was pointless, i REALLY didnt know there was a 20 line challenge

There are only 10 kinds of people in the world, those who understand binary and those who dont
Travis Gatlin
16
Years of Service
User Offline
Joined: 14th May 2009
Location: Oxford, Alabama
Posted: 5th Jun 2009 20:40 Edited at: 5th Jun 2009 20:53
well i improved my code now so it isnt pointless ok?
here it is!
im not sure if line 9 is correct ok? tell me if it isnt correct
BN2 Productions
21
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 5th Jun 2009 20:45
Quote: "move object 1,10"


Looks right.

If you have a joystick, you could include the code for it and have some fun with it. You could also look into the ROLL OBJECT RIGHT and ROLL OBJECT LEFT commands for some more interesting flying.

Also, don't forget to use the code button when posting code. Just highlight your code and click it and it will put it into a box like this:



Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose
Travis Gatlin
16
Years of Service
User Offline
Joined: 14th May 2009
Location: Oxford, Alabama
Posted: 5th Jun 2009 20:52 Edited at: 5th Jun 2009 20:55
ya i thought about making it roll but i didnt feel like it i actually made that up in 5 minutes and didnt think about making it with joystick cuz i dont have a joystick but i will try to make it joystick compatible
BN2 Productions
21
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 5th Jun 2009 21:23
If you can get a decent joystick, it should have Z-twist, then you can have the x and y values be for pitch and roll then the twist for turning (or switch rolling and turning). Joysticks make flight sims infinitely better.

Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose
Libervurto
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 6th Jun 2009 02:48
Quote: "PWWWWNED!!"

Another kamikaze post from Smartguy

@Travis
This thread's title is absurdly (spelling?) long and misleading.
You would have done better to call it "My flight sim" or something.

At the moment your aeroplane is going at a constant speed, how about adding a thrust control?
Have a look at CURVE VALUE it's a great command for stuff like this.

There is an eight letter word. You can insert a letter into it or remove a letter from it without changing its meaning. Answer
That1Smart Guy
16
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 6th Jun 2009 03:29
sorry about my post, u guys need to learn that im sarcastic by nature and dont mean anything negative I say

There are only 10 kinds of people in the world, those who understand binary and those who dont
Robert The Robot
18
Years of Service
User Offline
Joined: 8th Jan 2007
Location: Fireball XL5
Posted: 6th Jun 2009 12:43
@travis gatlin
Nice to see you're flight sim coming on so well. Now, there's still the problem that your aircraft is zooming off into the distance and leaving the pilot behind - I think we need a little camera work.

Try having a look at "Set Camera To Follow" to keep you close to the aircraft object, and handle smooth movement in just one line of code, or see the 3d Tutorial "Free Flight" in the help files (3D exampl program - number 19, I think)

You'll also find, though, that by always being just behind the aircraft, it may look like you never move anywhere. In fact you are moving but there's nothing to gauge you're movement by. You'll need a landscape, below - try looking at "Make Matrix" and "Randomize Matrix" (and no, this isn't to do with that rather well known film...)

"I wish I was a spaceman, the fastest guy alive. I'd fly you round the universe, in Fireball XL5..."
Irojo
17
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 6th Jun 2009 16:35
I just can't help myself...
Quote: "u guys need to learn that im sarcastic by nature and dont mean anything negative I say"


Was that sarcastic?


Time is money. I just ripped you off.
Travis Gatlin
16
Years of Service
User Offline
Joined: 14th May 2009
Location: Oxford, Alabama
Posted: 6th Jun 2009 20:24 Edited at: 7th Jun 2009 01:30
ok robert i have looked at set camera to follow and i understand but i cant position the camera right every time i tried it was somewhere in the middle of nowhere! im really ticked off about it..............................................................
also i know what you are talking about the matrix i know it isnt the movie.
That1Smart Guy
16
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 6th Jun 2009 20:42
TDK has a tutorial on the set camera to follow command, its not complicated once you understand the individual parameters

There are only 10 kinds of people in the world, those who understand binary and those who dont
BN2 Productions
21
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 6th Jun 2009 21:50
Yeah, definitely look at TDK's tutorial for the set camera to follow. I still can't do it without using it as a reference. Way too many arguments to keep track of.

An interesting trick is to use a variable for the angle and then change the angle based off of the mouse movement in the x direction. That way, you can use the mouse to circle around the plane

Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose
Travis Gatlin
16
Years of Service
User Offline
Joined: 14th May 2009
Location: Oxford, Alabama
Posted: 7th Jun 2009 01:38 Edited at: 7th Jun 2009 02:04
hmm interesting but i'm not really making a flight sim im making a multiplayer online game...but it could be a flight sim! ok but i dont want the slightest mouse movement to make it circle around the plane! so i will make it use WASD to make it circle around the plane
BN2 Productions
21
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 7th Jun 2009 01:55
Quote: "multiplayer online game"


Careful. That is a very dangerous mindset. It is incredibly difficult to make an online game. You seem to be new to the language, so I will advance that to impossible, no offense. It usually is advisable to start out simpler (hey, might as well work on a basic flight sim thing, you have already started)

Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose
Travis Gatlin
16
Years of Service
User Offline
Joined: 14th May 2009
Location: Oxford, Alabama
Posted: 7th Jun 2009 02:03
Quote: "You seem to be new to the language"


ya maybe i could make the sim single player 4 now and make it multiplayer later. (and i am kinda new 2 db i have only had it for a month)
That1Smart Guy
16
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 7th Jun 2009 02:20
where was that image...

here it is (hope it works)

There are only 10 kinds of people in the world, those who understand binary and those who dont
BN2 Productions
21
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 7th Jun 2009 12:33
Lol, always liked that one smart guy.

Travis,
An online multiplayer game is a good goal. However, it is very difficult to do alone. Teams of people work together to create even the worst ones on the market, not to mention monitoring it to keep it running. Not trying to kill your enthusiasm here, as it seems you have plenty, but I always hate to see people burn out by flying too close to the sun as soon as they get wings (how's the icarus analogy going?)

Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose
Travis Gatlin
16
Years of Service
User Offline
Joined: 14th May 2009
Location: Oxford, Alabama
Posted: 7th Jun 2009 19:12 Edited at: 8th Jun 2009 00:36
icarus analogy? what is that and also i know i need to monitor it but i will try to hire some people because i will get a license

the modern government tries to make time,into money that is why clock are not free! in theory time is actually money!
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 7th Jun 2009 23:36
Icarus was a greek god I'm pretty sure, and like Bn2 said, i think he flew 2 close to the sun and well Burnt out as bn2 put it lol

New Site! Check it out \/
Travis Gatlin
16
Years of Service
User Offline
Joined: 14th May 2009
Location: Oxford, Alabama
Posted: 8th Jun 2009 00:34
lol greek gods were dumb!

the modern government tries to make time,into money that is why clock are not free! in theory time is actually money!
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 8th Jun 2009 00:59
++ Not real lol

New Site! Check it out \/
Travis Gatlin
16
Years of Service
User Offline
Joined: 14th May 2009
Location: Oxford, Alabama
Posted: 8th Jun 2009 01:24 Edited at: 8th Jun 2009 01:25
hey what code do i use if i want to make you able to type in the speed you want to go (and i already know about the input code)

the modern government tries to make time,into money that is why clock are not free! in theory time is actually money!
Travis Gatlin
16
Years of Service
User Offline
Joined: 14th May 2009
Location: Oxford, Alabama
Posted: 8th Jun 2009 01:28


the modern government tries to make time,into money that is why clock are not free! in theory time is actually money!
Libervurto
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 8th Jun 2009 02:21
http://en.wikipedia.org/wiki/Icarus
google
Icarus wasn't a god but he is a mythical character. His father made him a pair of wings and he flew high into the sky, but the wax holding the wings together melted and he fell to his death!
The Greek Myths are really good stories, they're worth a read.

Quote: "what code do i use if i want to make it possible to type in the speed you want to go?"

Do you want to be able to input a new speed without halting the program?
I'll write a short demo and be back in five minutes or so.
Look up ENTRY$(), I'll be using that command.

There is an eight letter word. You can insert a letter into it or remove a letter from it without changing its meaning. Answer
That1Smart Guy
16
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 8th Jun 2009 02:52
what help files catagory is entry$ under?

There are only 10 kinds of people in the world, those who understand binary and those who dont
BN2 Productions
21
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 8th Jun 2009 03:00
Should be in the Input help category. Way down at the very bottom.

Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose
Libervurto
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 8th Jun 2009 03:15
There's a typo in the help file; it's under Entyr$().

Here's my test...

word limit!!!

There is an eight letter word. You can insert a letter into it or remove a letter from it without changing its meaning. Answer
Libervurto
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 8th Jun 2009 03:19 Edited at: 8th Jun 2009 03:23

Stick those two snippets together.

I probably introduced a few new commands there so play around with them. This is quite a simple program so you should be able to grasp the new commands from how I've used them here.

Haha my 5mins turned into an hour!
Half of that was typing it up here though!
Why is the PS3 so crap when it comes to the internet??
Can someone test my code please, I am very old school here typing my stuff out.

I'm gonna buy a new PC, I'm tired of this

There is an eight letter word. You can insert a letter into it or remove a letter from it without changing its meaning. Answer
BN2 Productions
21
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 8th Jun 2009 03:34
Quote: "Why is the PS3 so crap when it comes to the internet??"


Well, it is a game system... and a blue ray player... and an internet browser. They squeezed quite a bit into 1 system, so it isn't likely they could win all the way around. Why they put a word limit though I don't know. Probably so that they can re-release it in a couple years with twice the word capacity.

Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose
Libervurto
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 8th Jun 2009 03:48
@BN2
I'm not going to get into that discussion here but I'm THIS close to starting a geek culture thread about it

There is an eight letter word. You can insert a letter into it or remove a letter from it without changing its meaning. Answer
Travis Gatlin
16
Years of Service
User Offline
Joined: 14th May 2009
Location: Oxford, Alabama
Posted: 9th Jun 2009 04:02
im gettin a PS3 yay!!!!!!!and a iphone yay!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

the modern government tries to make time,into money that is why clock are not free! in theory time is actually money!
Ron Erickson
Moderator
22
Years of Service
User Offline
Joined: 6th Dec 2002
Location: Pittsburgh, PA, USA
Posted: 9th Jun 2009 04:43
LOCKED

Travis,
You have also earned a slap and are now on post approval. Your location in your profile has also been changed. Please refrain from useless posts. I'll be keeping my eye on you.

Everyone else,
Sorry for not catching this sooner. I've had a busy couple of days.


a.k.a WOLF!

Login to post a reply

Server time is: 2025-08-08 11:54:20
Your offset time is: 2025-08-08 11:54:20