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 / Updating Cam and objects

Author
Message
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 1st Feb 2009 14:37
Hi er I need help in updating my objects

and camera and I seem to have a problem naming loaded objects as "player" or "self" and DBC ctually accept this , why is this please?
LBFN
18
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 1st Feb 2009 19:56
The program crashed my computer. There are a few issues. You run into the subroutine '_Input' before your main loop - move it to later in the code. You need an 'end' statement after your main loop. Also, your '_UpdateAircraft' subroutine does not have a 'return' command at the end of it. I believe it is the _UpdateCam subroutine that is causing the crash. If you indent the code in that subroutine correctly, you'll see that things don't match up. It seems like it would not even compile.

Once I did these things it at least ran, but beyond that, I am unsure exactly what you are trying to do. As to naming the objects with names such as "player", I did that with no problem.

Since you can't be in more than one vehicle at a time, why not just use 'vehicle' to track which one you are in? You could have it = 0 if you are not in a vehicle, =1 if you are in the hovercraft, =2 if you are in the airplane, etc.

I don't see where your _input subroutine gathers anything useful as to where the player wants to go. I would suggest that you gather the joystick and keyboard information in this subroutine and then use the input data in processing how the camera will react, depending upon which vehicle you are in.

I can probably help further if you could clarify your intent of the program a little more.

Hope this helps.

LB

vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 2nd Feb 2009 00:45 Edited at: 2nd Feb 2009 00:49
OK LBFN can you email me then at this address [email protected] then please?
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 2nd Feb 2009 00:47 Edited at: 2nd Feb 2009 15:49
And somehow on my machine me using models to name then "player" or "self" doesn't work on my machine, no clue why
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 2nd Feb 2009 00:51
The intent of the program is to have the player get into ground and air vehicles(not at the same time of course)this will also include friendly and enemy A.I NPC'S as well
LBFN
18
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 2nd Feb 2009 02:52 Edited at: 2nd Feb 2009 02:53
Quote: "The intent of the program is to have the player get into ground and air vehicles(not at the same time of course)this will also include friendly and enemy A.I NPC'S as well"

Okay, that's what I expected. I really didn't see anything to get into and all I could ever manage was to strafe to the right. I will email you and we can discuss it further.

Login to post a reply

Server time is: 2025-05-18 14:41:05
Your offset time is: 2025-05-18 14:41:05