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 / Jump Jets

Author
Message
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 24th Jul 2004 23:32
How do I make my plane take off vertically like a Harrier Jump Jet or a JSF35?
Joe Cooning
22
Years of Service
User Offline
Joined: 29th Mar 2003
Location: United States
Posted: 25th Jul 2004 08:14
Wow! How unspecific! It would help if you posted some code that you already have or something. Include more details

John-Jacob-Jingle-Hymer-Schmidt! His name is my name too!
Mentor
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 25th Jul 2004 18:00 Edited at: 25th Jul 2004 18:16
assuming you have the x,y plane as the ground, then all you have to do is to increase the height of the object, eg:

sync on
sync rate 40
make object cube 1,1
make object plain 2,50,50
pitch object up 2,90
position object 1,0,0.5,0
position camera 25,10,25
point camera 0,0,0
color object 2,rgb(10,150,50)
sync:sync
wait 1000
height#=0.5
speed=0
do
height#=height#+0.1
speed#=speed#+0.004
if speed#>1 or delay<40
if delay=40
delay=0
endif
inc delay
height#=0.5
speed#=0
position object 1,0,0.5,0
endif
position object 1,object position x(1),height#,object position z(1)
move object 1,speed#
sync
loop

just creates a loop where the ultimate combat cube does a VTOL takeoff and flies off, to be replaced by another, and another, all it does is increase the height of the cube and accelerate it forwards by a small amount each frame, hope thats what you want.

Mentor.

PS: this was written in Pro, you might need to make small alterations although I tried to keep the Pro only commands out.

PC1: P4 hyperthreading 3ghz, 1gig mem, 2x160gig hd`s, Nvidia FX5900 gfx, 6 way surround sound, PC2: AMD 1.2ghz, 512mb ram, FX5200 ultra gfx, stereo 16 bit soundblaster.
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 27th Jul 2004 04:05 Edited at: 27th Jul 2004 04:06
Er ...........Joe Cooning, how much more bloody specific do I have to be? I am sure I asked a fairly straightforward question , there are to date only 3 VTOL aircraft in the wolrd operating today the Harrier Jump Jet, the JSF35 and I think the Russian Flogger?

As for code here:
http://forum.thegamecreators.com/?m=forum_view&t=35467&b=6
Thanks Mentor I will try to adapt this for my air/spacecraft
Axelman
21
Years of Service
User Offline
Joined: 18th Oct 2003
Location: Parallel Universe
Posted: 1st Aug 2004 17:03
you could also so its facing the sky and move it with the MOVE OBJECT command.

This Space for rent
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 25th Aug 2004 01:51
WOW Mentor I just tried that code and now , after a few very minimal alterations I have VTOL flight, great, now all I need is to dp conventional flight (once a plane reachses a certain speed, usually 200 mph it then takes of ) then I would have everything for flight, thanks Mentor
Arkheii
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: QC, Philippines
Posted: 28th Aug 2004 19:54
@Edizzle: If everybody was born l337 then there would be no need for a dev forum.

dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 29th Aug 2004 19:13 Edited at: 29th Aug 2004 19:25
well when you say take off, do you just mean move it vertically?, will it move forward afterward etc etc

[edit], the mig23 is ctol, but the v22 ospreey is capable of vstol, so that would count as vertical takeoff


David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 29th Aug 2004 20:22
Quote: "Er ...........Joe Cooning, how much more bloody specific do I have to be? I am sure I asked a fairly straightforward question , there are to date only 3 VTOL aircraft in the wolrd operating today the Harrier Jump Jet, the JSF35 and I think the Russian Flogger?"


He was being sarcastic!

Don't be too specific when asking questions, eg. "how do I make drivable jeeps with mounted gunners that automatically shoot???"

try ask ask first of all

How can I have two control types (one for vehicles, one for walking?)

then

How can I place other objects on an object?

and then ask variaous questions about the AI (How can I detect whether an object is in front of me? How can I make a bullets system?)

etc.

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"
Arkheii
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: QC, Philippines
Posted: 29th Aug 2004 20:47
The question is clear enough. Roughly, it translates to "how do you move an object upwards?"

There are lots of ways to do this do. The easiest would be to have something like:

do
if spacekey() then y#=y#+1
position object 1,x#,y#,z#
sync
loop

It looks overly simple, but if you scrap out all the funky physics code and flashy input crap it simplifies to something like that. You can change the equation, add gravity, etc. by simply modifying the variables.

Remember, the game is just about the variables. The models, objects, sprites, etc. are just representations of those variables to make it much more interesting, it's kinda like having a chessboard and chess pieces when it's still possible to play blind chess or chess on paper.

vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 30th Aug 2004 07:43 Edited at: 30th Aug 2004 08:18
I see, thanks arkhill, @edizzle by the way, what is a noob question or nhub question as you like to spell it? Also I think I meant the Yak 38 rather than the Mig 23 "Flogger" is the VTOL.

What I wish for is a VTOL aircraft that can take off and land vertically and conventionally that 's all then my plane modification code is complete
John H
Retired Moderator
22
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 3rd Sep 2004 05:53
Edizzle - 24 HR ban for spamming and being an bunghole -_-

OWNIZZLED


Check out our Team Request in the Team Request section if you want to help!
Edizzle
20
Years of Service
User Offline
Joined: 22nd Aug 2004
Location:
Posted: 4th Sep 2004 12:37
lolz i got ownizzled

http://edizzle.100free.com
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 4th Sep 2004 20:13 Edited at: 8th Sep 2004 00:35
Yeah so what? **** off
Edizzle
20
Years of Service
User Offline
Joined: 22nd Aug 2004
Location:
Posted: 5th Sep 2004 04:46
vampyre arn't you suppost to be failing at something somewhere

http://edizzle.100free.com
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 5th Sep 2004 06:06
You mean like how you fail at everything all the time edizzle? hmmmmmmmm?
Edizzle
20
Years of Service
User Offline
Joined: 22nd Aug 2004
Location:
Posted: 5th Sep 2004 10:41
ya exactly good call

http://edizzle.100free.com

Login to post a reply

Server time is: 2025-05-24 21:22:48
Your offset time is: 2025-05-24 21:22:48