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 Professional Discussion / Camera Follow Player? (3rd peson)

Author
Message
CocaCola
16
Years of Service
User Offline
Joined: 23rd Mar 2010
Location: CocaCola.x CocaCola.y CocaCola.z
Posted: 17th Jul 2010 03:51 Edited at: 17th Jul 2010 03:52
How do you make a camera follow the person? the easiest way? I know how to make a 3d object move but how would you make the camera follow it?

Thanks!

Also how about first person view?

1 more question, im looking for tutorials that arent a beginner tutorial, like I know how load 3d objects, make them move, load the camera etc.

Thanks everyone!
oh and im not using u75 i dont like it, im using a earlier version. before u65 i think even

I want coke, not Pepsi!
Sixty Squares
20
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 17th Jul 2010 04:23 Edited at: 17th Jul 2010 04:23
Set Camera To Follow Tutorial <-- Third person camera tutorial.

For a first person camera, you generally make an object (preferably a sphere), hide it, and then position the camera where the object is each loop. After that you just control the object however you like and the camera follows . You could do this without the object if you wanted, moving the camera instead.

Hawkblood
16
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 17th Jul 2010 19:56
That's a good start. I prefer to do the camera stuff myself:
The globals:

The function


The fastest code is the code never written.

Login to post a reply

Server time is: 2026-07-25 04:55:16
Your offset time is: 2026-07-25 04:55:16