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 / Hi really need help

Author
Message
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 30th Dec 2004 04:09
Hi I know I have asked this before but I am really stuck on this "in and out of vehicles " thing. this bit of code I need to know where I am going on as I keep gettting a "syntax error" on this code.


But the problem I really have is the in and out of vehicle3s using models so can I get some help please after this al I need is to do the A.I (both friendly and enemy) and then I have a game level. Please help someone, thank you

Dot Merix
21
Years of Service
User Offline
Joined: 15th Oct 2003
Location: Canada
Posted: 30th Dec 2004 05:15
Well.. I'm not the best person to be asking about this.. but this is my take on the situation.

(I havent read the code), but if it's in 3d this is how i'd do it(assuming i had the time on my hands...

I would place say, 4 different hidden boxes around the car. If the character ran up to the car and was touching the left box, the animation for entering the vehicle from the left side would play..

Also, if he touched any of the boxes and say the e button was pressed, so the code would look something like..
for x = 1 to carboxes
if object collision(player,carboxes) and inputkey$ = "E"
Change into vehicle mode
endif

Something like that, not sure if it will help you, but it might open your mind to a new way of doing it.

Good luck



WindowsXP Home(Service pack 2), Athlon XP 2400+(2.1Ghz), 1GIG Ram, Ati Radeon 9800Pro 128MB.
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 30th Dec 2004 06:16
Thanks Merix , I might have to start looking at it that way also I would like to do it where the player or a.i just get into the vehicle and drive or fly off so having 2 types of getting into and out of a vehicle.

Sorry that I have asked this yet again forum but I am really stuck on this part.
DeHonCha
20
Years of Service
User Offline
Joined: 2nd Dec 2004
Location: A world of my own...
Posted: 6th Jan 2005 00:26
bear with me vamp - i'm taking your matter seriously cuz i had the same problem a few years ago (when darkbasic was at its version less than 1.0 stage ). i'll post this forum soon when i can.

For when they said I couldn't, I did...
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 17th Jan 2005 15:03 Edited at: 17th Jan 2005 15:05
Thanks DeHonCha I really need help with this as I have almost everything ready except the friendly and enemy A.I but the vehicles are ready in 1st and 3rd person

Sorry that it took so long to post a reply.
DeHonCha
20
Years of Service
User Offline
Joined: 2nd Dec 2004
Location: A world of my own...
Posted: 28th Jan 2005 20:59
sorry for late post - my connection's all messed up = late post = slow help = um....

so - u need to have a player enter a vehicle when he's near it right?

For when they said I couldn't, I did...
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 16th Feb 2005 22:51 Edited at: 16th Feb 2005 22:53
Sorry for late post DeHonCha
yeah, thats right the player enters the vehicle (if it is empty and then the player or a.i driver/pilot can drive the car hovercraft or fly the air/spaceplane.

If I can have your email address or you can email me at [email protected] then we can dicuss this better rather than replying to each other months later LOL
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 19th May 2005 01:35 Edited at: 20th May 2005 06:48
DeHonCha, did you managed to solve the in and out of vehicles thing as I really need help with htis and most of my vehicles for my game are ready.

Please help someone
jlb1987
20
Years of Service
User Offline
Joined: 10th May 2005
Location:
Posted: 19th May 2005 18:53
hey. Mind if I interfer in this thread? I also really need to know how to do this incase I decide to turn one of my game ideas into practics in a couple of weeks. (the game idea I have is still just an idea, unfortuently). I'm going to have a look for a thread on this now, but I fear that nothing will come up. Here goes...

"We dads have a saying- You can't fix it 'til you've broken it." Brian Johnson.
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 28th May 2005 00:14
Fell free jib1987 I just want to know how you get in and out of vehicles using models as I know how to do it with just shapes but I want to know how to do it it with modela and how to have it so that you don't need a use key and one that you do need a use key

Login to post a reply

Server time is: 2025-05-23 00:09:19
Your offset time is: 2025-05-23 00:09:19