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 / multiple cameras

Author
Message
koolaid 2764
21
Years of Service
User Offline
Joined: 30th Sep 2003
Location: Atlanta, Georgia
Posted: 16th Oct 2004 04:07
im working the camera system inthis project the perspective is third person i have a function called maincam which is the camera that chases the player like in tomb raidar but how can i say hit a key to switch views the second view there will be a side cam heres the main cam function included.i appreciate any help offered thanks.

KOOLAID

Attachments

Login to view attachments
Xander
22
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 16th Oct 2004 11:59
Just have a variable that keeps track of which camera mode you are in. Start it at 1. If a button is pressed (maybe "C") then switch the variable (camera=3-camera). Now, depending on what camera mode you are in, go to a different camera function.

Get it?

Xander Moser - Bolt Software - Firewall
koolaid 2764
21
Years of Service
User Offline
Joined: 30th Sep 2003
Location: Atlanta, Georgia
Posted: 16th Oct 2004 17:23
i get what your saying but im still mixing something up im not getting it right i have a maincam function and sidecam function.so in my main code i set cammode=1(maincam).the part where i have to update the camera is messing me up

KOOLAID
koolaid 2764
21
Years of Service
User Offline
Joined: 30th Sep 2003
Location: Atlanta, Georgia
Posted: 16th Oct 2004 17:36
sorry if im asking so much im just trying to get this camera code right i have these ideas but not too sure how to inplement them the code here
is for the maincam that follows the player but what im trying to do is similar to resident evil i want to rotate the player around without moving the camera.turn a direction without the camera actually pointing there immediately.then if i deside to move forward or backwards i want the camera to jump back behind me following me.i have a understanding of how to but its not all coming right.thanks for any assistance you may give.

KOOLAID
phukol
21
Years of Service
User Offline
Joined: 22nd Nov 2003
Location:
Posted: 18th Oct 2004 15:29
dude you could make use of the camera function in Limit Rush tutorial. You just change (or play around certain aspects of it) and place a specific key to call a certain camera type. ex f1-for chase cam; f2-for face cam and the likes. il try to post the function i used when i got the time.

phukol
Xander
22
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 18th Oct 2004 16:09
Koolaid, I answered your second question in another thread...

Back to your first question. Here is a little sample that shouldn't straighten it out.



I don't know what your functions are called...but do you understand?

In the future, please don't post the same question in more than one thread.

Xander Moser - Bolt Software - Firewall

Login to post a reply

Server time is: 2025-05-24 12:17:33
Your offset time is: 2025-05-24 12:17:33