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 / In and Out of vehicles 1ST/3rd Person camera's

Author
Message
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 25th Aug 2004 02:00
I have a flight and hovercraft model , which I will soon add a car , or hovertank or conventional tank model to my question is I kind of think I can suss out getting into vehicles but when I get the player in do I need to have the camera code in like the vehicle so the player can see first and third person or do I just need it in the player code?
ArcAngel
21
Years of Service
User Offline
Joined: 18th Oct 2003
Location:
Posted: 25th Aug 2004 03:32
good question, i'd say experiment with both. Which ever ones looks better i guess.

"There's a glitch in the Matrix"
"Attack life, your going to die anyway."
"Visit my website! www.freewebs.com/stradigos"
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 27th Aug 2004 18:41
Thankjs Strad but I really need help here
Arkheii
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: QC, Philippines
Posted: 30th Aug 2004 21:24 Edited at: 30th Aug 2004 21:31
Eh? How about having both camera views?

WASD to move around, v to toggle between 1st and 3rd person view, ctrl to enter the car if you're close enough...



Sorry, but I just did this now and I have no time to rem it... And don't complain about physics >_< It should be easy enough to understand though, just check what the view angle is and adjust the values depending on that.

BTW, I don't really understand your question. Can you be a little more clear on that?

vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 30th Aug 2004 22:29
I want that when the player gets near to the hovertank he automatically gets in , say his body is right next to the tank then he gets into the tank as long as it is empty and doesn't have an enemy or friendly a.i driver in the tank.

OK lets say in DB terms, if his polgons are colliding with the empty hovertanks polygons and it is a one man hovertank he gets in, if it is a four man hovertank he gets in and takes up command position operating the main cannon and the machine gun. If it is an enemy 1 or 4 man tank he can't get in and the enemy tank attacks the player.

Nowthe camera's I want the camera's to be in the 1st or when pressed by another key the 3rd person but as I have my hoercraft and aircraft already have 1st/3rd person camera's I want to know if it is best to leave the camera's in the hovercraft and aircraft code or, should I just put the camera in the player code.

Woud the camera's work the same? would I still be able to look out of the cockipt and get a 1st/3rd person choice of camera

N
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 30th Aug 2004 22:32
I like the vehicle handling in Battlefield, basically your WASD keys become the vehicle control, and your mouse is used to look around. And external view is handy as well, but there should be an option - Halo had this zoom out system, and that was ok, but I like to remain in first person because it maintains the immersion effect better.

I suppose it largely depends on the type of game, if it's arcadey, go for a Halo approach, if it's a simulation - keep it first person but with an external view option if the player wants it.

Also - a nosecam for aircraft is a must, basically it's best if you can hide the inside of the cockpit and see the whole screen, only really works on aircraft, so consider it if your adding flight vehicles.


Van-B


Muhahahahaha.
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 30th Aug 2004 22:38
Well, thanks for the opinion Van B still I have done my vehicles and they are all ready , even WASD (although there is some type of problem they WASD either works or cuts out as I want both WASD and Curur keys, I may have to do them separate)

As it is a simultion tyoe game I shall have a 1st/3rd person camera but what I wish to know should I have the camera's in the vehicle code or the player coder or both
Arkheii
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: QC, Philippines
Posted: 30th Aug 2004 22:49
Have the camera as a separate portion of code, like I did. It's easier to manage.

vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 30th Aug 2004 23:06
Well I have the vehicles as separate code, and the player as separate code from the vehicles, thanks for that code by the way, played with it a bit and mamged to get the player to get into the car automatically without having to press a key but how would I get the player out? as I would like him/her to come out by pressing a key.

And where would I put the varibles for getting into and out of a vehicle? in the player code? and I also want to allow A.I to get in and out of vehicles. How do I do that ? or can you make example code of that pleae arkheli
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 30th Aug 2004 23:38 Edited at: 8th Sep 2004 22:34
Actually I think I might have got it , I would have to do an a.i pilot and an enemy a.i pilot but I think I may have it,

The thing is I would have to rewrite the camera code as it is with set camera to object orientation command
Arkheii
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: QC, Philippines
Posted: 31st Aug 2004 00:59
Then go forth and rewrite your code. You don't have to follow the snippets exactly. It's just an example and it only presents the concept.

vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 31st Aug 2004 19:21
I see, thanks arkeii although "go forth and rewrite your code" isn't that a little 16th Century? LOL
Lorraine Evans
20
Years of Service
User Offline
Joined: 17th Aug 2004
Location:
Posted: 1st Sep 2004 09:47
oh, no, that's awesome. Great, Arkeii!!
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 7th Sep 2004 23:33
Oh by the way I fixed the WASD code, still thanks arkelli.

Login to post a reply

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