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 / plane problems

Author
Message
King Arthur
22
Years of Service
User Offline
Joined: 31st Dec 2002
Location:
Posted: 20th Oct 2003 22:23
I'm trying to make a program where you just move an aerpolane around on top of a background. The problem is, DB thinks the front of the object is it's side. Here's what I've got so far:



Can anyone tell me how to change it so that the front of the aeroplane's front isn't its right wing?

I know this program is very primitive, but I'm just practising.

"I love to go down to the school yard and watch all the children run jump and scream... I don't think they know I'm only using blanks."
King Arthur
22
Years of Service
User Offline
Joined: 31st Dec 2002
Location:
Posted: 20th Oct 2003 22:32 Edited at: 20th Oct 2003 22:33
BTW, I've just tried to put the background in. I entered the following line:



The picture wont show up in the background. How do I get it to show up?

"I love to go down to the school yard and watch all the children run jump and scream... I don't think they know I'm only using blanks."
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 21st Oct 2003 01:10
You need to texture the backdrop or make it a sprite...

Knowledge Belongs To The People...
King Arthur
22
Years of Service
User Offline
Joined: 31st Dec 2002
Location:
Posted: 21st Oct 2003 12:34
I've tried texturing the back ground by putting in:

texture backdrop 1

The problem here is, is the picture has split into 6 around the screen.

I then tried:

sprite 3,0,0,2

This made the picture fill the screen, but I can't see the helicopter. (I changed the model).

"I love to go down to the school yard and watch all the children run jump and scream... I don't think they know I'm only using blanks."
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 21st Oct 2003 13:14
before the sprite command, put in:


This will put all 2D behind any 3D you have...


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
King Arthur
22
Years of Service
User Offline
Joined: 31st Dec 2002
Location:
Posted: 21st Oct 2003 14:37
I've tried that but I still get what I got before. Here's what I've got:



"I love to go down to the school yard and watch all the children run jump and scream... I don't think they know I'm only using blanks."
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 21st Oct 2003 15:27
Ok, try this:



Hope That Helped...


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
King Arthur
22
Years of Service
User Offline
Joined: 31st Dec 2002
Location:
Posted: 21st Oct 2003 16:32
That hasn't worked either.

"I love to go down to the school yard and watch all the children run jump and scream... I don't think they know I'm only using blanks."
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 21st Oct 2003 16:43
Erm, well, try making a seemless texture and using that as the backdrop image. That's the only thing i can suggest, sorry...


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
Mucky Muck Ninja
21
Years of Service
User Offline
Joined: 4th Sep 2003
Location: im not entirely sure
Posted: 23rd Oct 2003 07:58
To change the angle of the plane do this:
YROTATE OBJECT PLANE,90
FIX OBJECT PIVOT PLANE


if that doesn't work, change the 90 to 270.

Hope I Helped...

Am I an Idiot...or is everyone else just really smart?
KNau
22
Years of Service
User Offline
Joined: 25th Nov 2002
Location: Canada
Posted: 23rd Oct 2003 14:56
As for your backdrop problems try loading the background image as a bitmap and then copying that to bitmap 0. Like this:



http://www.canceriannewmedia.com
King Arthur
22
Years of Service
User Offline
Joined: 31st Dec 2002
Location:
Posted: 24th Oct 2003 01:22
It's working. Thanks loads you guys.

"I love to go down to the school yard and watch all the children run jump and scream... I don't think they know I'm only using blanks."

Login to post a reply

Server time is: 2025-05-21 10:16:06
Your offset time is: 2025-05-21 10:16:06