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.

Newcomers DBPro Corner / Can someone help me cuz if i work longer on this code i'll go mad

Author
Message
Mussi
23
Years of Service
User Offline
Joined: 27th Jan 2003
Location: Netherlands
Posted: 20th Jun 2003 22:55 Edited at: 20th Jun 2003 22:56
i'm making an fps game and i want vehicles in it. i want to be able to get in an vehicle when i press the "e" button(keystate 17).
i programmed the following code so far.

Specs: AMD Athlon 1800, 256 DDRRam 266mhz, 10GB HD, Riva TNT2 Ultra 32mb
Mussi
23
Years of Service
User Offline
Joined: 27th Jan 2003
Location: Netherlands
Posted: 20th Jun 2003 22:58
oops. i attached the code now.
the prob is that i can't get in the car . can someone help me... again.

Specs: AMD Athlon 1800, 256 DDRRam 266mhz, 10GB HD, Riva TNT2 Ultra 32mb
hexGEAR
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Naytonia
Posted: 20th Jun 2003 23:36
this is kinda generic, there are several ways of doing this and i can't really understand the code so i won't know how best to tackle the problem.

The best thing i'd say is visualise the problem before implementing. You have a man you control, when you press "e" you want him to get into the car right? your gonna have two controllers then, i to focus on the man, the other for the car, since it's an fps your using the camera so basically when you get close enough to the car and press e you switch controllers from the man to the car.

what camera view are you having for the car? is it the cockpit view where your inside? or the 3rd person view where your behind, a little untop and outside the car? either way the pseudo code should be something like:



hope that remotely helped

to live is to suffer, to survive, well, thats to find meaning in the sufferening.....
Mussi
23
Years of Service
User Offline
Joined: 27th Jan 2003
Location: Netherlands
Posted: 21st Jun 2003 01:18
i had something like that but not exactly like that.
thnx for your help, I didn't tried it yet but I think it will do.

Specs: AMD Athlon 1800, 256 DDRRam 266mhz, 10GB HD, Riva TNT2 Ultra 32mb

Login to post a reply

Server time is: 2026-07-06 06:44:13
Your offset time is: 2026-07-06 06:44:13