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 / Help with 3rd person viewing

Author
Message
dab
20
Years of Service
User Offline
Joined: 22nd Sep 2004
Location: Your Temp Folder!
Posted: 23rd Jun 2005 12:13
I was trying to make a little city made up of buildings, a penguin model, and a car. The person you control is supposed to be the penguin, and the penguin is supposed to drive the car. Then the penguin and the car are supposed to hit the building and stop instead of going through it. Did I mention they are all on a matrix. Everything runs fine. I just have one problem, I can't control the penguin nor make the camera follow the penguin. Here is the source code. Included.



Thanks in advanced!

------------------------
Visit my website of Games!
http://dabip.t35.com
Jake Blues
20
Years of Service
User Offline
Joined: 19th Jun 2004
Location: United States
Posted: 23rd Jun 2005 13:01
Here is some code to control the camera:


You can call that function in your main loop. You will have to fix the object numbers to go with your penguin object number but over all, it should work.

dab
20
Years of Service
User Offline
Joined: 22nd Sep 2004
Location: Your Temp Folder!
Posted: 24th Jun 2005 00:46
Thanks. One question, how do I call a function? I understand the code but don't quite understand functions. Think you could explain? Thanks if you could@

------------------------
Visit my website of Games!
http://dabip.t35.com
Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 24th Jun 2005 21:34
just put 3rd_Person_Camera_Rotate() in your main loop

Immunity and Annihalation makes Immunihalation...
dab
20
Years of Service
User Offline
Joined: 22nd Sep 2004
Location: Your Temp Folder!
Posted: 25th Jun 2005 03:42
okay gotchya! Thanks!!!

------------------------
Visit my website of Games!
http://dabip.t35.com

Login to post a reply

Server time is: 2025-05-22 20:10:09
Your offset time is: 2025-05-22 20:10:09