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 / How do I get this plane to do Freelancer mouse steering

Author
Message
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 25th Aug 2004 08:06
I am trying to make this plane steer with a mouse but I can't seem to to it with this code what am I doing wrong now?

vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 25th Aug 2004 08:26
I am trying to mod the freeflight example 18 again
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 25th Aug 2004 19:01
Please can I have some help here?
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 25th Aug 2004 22:31
That is why I don't like forums, can't we just have a good 3D Dark Basic Book explaining things people need then us who need to ask questions wouldn't have to waste our time coming onto the forums and annoying those who know everything about Dark Basic with our questions.

I would write onne on the 3D side but I don't know everything there is to know about DB as I have really only started programming in the last 8 months with it
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 25th Aug 2004 22:46
Okay..

1) Not alot of people may have played freelancer, they they won't know what you're talking about. You can't write a book explaining how to do Freelancer mouse code.

2) I however love the game, and wrote this a while ago:



Get 15 new commands, all the date / time commands left out of DBPro for free!
DOWNLOAD PLUGINS HERE: http://www.davidtattersall.me.uk/ and select "DarkBasic"
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 25th Aug 2004 23:47 Edited at: 25th Aug 2004 23:49
The thing is I don't even have Freelancer yet LOL but seriously, why isn't there no 3D Book on Dark Basic I had a look at that other book and there isn't much on the 3D side of things only 2D with about one or two chapters on 3D . And it isn't just for Freelancer steering I mean I need to know how to get in and out of vehicles, How to build a level editor with landscape forming tools, how to have a FPS with both 1st and 3rd person camera's I have managed to get quite a bit of it but not without having to come on here after I try something and get into a mess.

But I think Dark Basic could easily become the language gaming companies prefer to ue rather than C++ I got a really excellent working plane, complete with VTOL which I will put up in the code snippets and codebase and a straffing, turning hovercraft as well with help from others, including a hat control that you can turn the camera around and look around the cockpit which I wanted.

But it would be better if there were more tutorials and you can bet that loads of people want to know how to get in and out of vehicles for both player and A.I drivers /pilots(Chrome, Breed, Battlezone (98)and Battlezone 2, Battlefield 1942, Halo , Unreal Tournament 2004) how to do joystick H.O.T.A.S'S to control vehicles which only now I know how to do, Racing games which I had to pester the forums to find out things like that I would like to see a book on Dave.

I got the player vehicle thing I can even do a player car with my Genius Speedwheel and do a hovercraft vehicle with it as well plus a VTOL air/spacecraft with either my Thrustmaster Afterburner or my Saitek X36 so I don'tmind contributing a tutorial on that but I would love a decent book on how to do the 3d stuff I would pay good money for that.

Tried your code and it worked, still I am not really that skilled to turn it into use for an object especially to convert it for Frre flight 18 example the but I guess I will kep struggling on
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 26th Aug 2004 01:05
Quote: "I need to know how to get in and out of vehicles, How to build a level editor with landscape forming tools, how to have a FPS with both 1st and 3rd person camera's I have managed to get quite a bit of it but not without having to come on here after I try something and get into a mess. "


You're thinking too narrowly. When many people play games and buy DB with dreams of remaking them, they think in terms of gaming ("How do I get in and out of cars? How do I get HALO style AI? etc.").

You need to think logically and programmatically.

How to get in and out of a car? Well first I suppose you need to make the characters walk around a landscape.

Then you need a car model.

Then check to see if the player is near the car and is pressing a key that corresponds to "get in car".

If the player satisfies both of the above conditions, then change a variable somewhere that tells your game that you're in the car.

Now, where your movement code is write another bit of movement code for when you're in the car.

Tnen check to see if the player is in the car, is he is the run the car movement code otherwise run the normal movement code:



Quote: "How to build a level editor with landscape forming tools, how to have a FPS with both 1st and 3rd person camera's"


Heh yes this is a classic case of wannabeishness (no offence ).

Lots of games do come with big editors but they takes ages to code are require 2d->3d translation which is h.a.r.d. There's a reason why these games take years, not weeks

Quote: "still I am not really that skilled to turn it into use for an object "


Replace "rotate camers" with "rotate object"

Quote: "But I think Dark Basic could easily become the language gaming companies prefer to ue rather than C++"


No way - too slow. C++ is the way to go, faster, allows more control, doesn't crash as much ^_^

Get 15 new commands, all the date / time commands left out of DBPro for free!
DOWNLOAD PLUGINS HERE: http://www.davidtattersall.me.uk/ and select "DarkBasic"
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 26th Aug 2004 15:25 Edited at: 26th Aug 2004 15:25
Dave

1 What about Blitz Basic then and DBP or Python which I haven't got yet? I am going to Uni so I will find out about C++, from what I can see though it is very complicated ,
2 Judging by the amount of FPS that are always being done with DBC why not tutorials I mean proper tutorials on things I think people will want as a lot of FPS'S are now having to include ground and some are using ariel vehicles to now break the monotony of always being on the ground
3 As I said I have vehicle and a player model with 1st 3rd person camera code in it already can't thjis be included in a landscape level editor, I get conflicting views "it 's not that hard to make a level editor" "it is that hard to make a level editor" still a tutorial on making a basic lavel editor would be a great help

Login to post a reply

Server time is: 2025-05-25 02:25:19
Your offset time is: 2025-05-25 02:25:19