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 / How do I ?(another camera question)

Author
Message
Major Payn
20
Years of Service
User Offline
Joined: 16th Dec 2003
Location: United States of America
Posted: 27th Dec 2003 02:54
As you probably can see from my other posts I am having a lot of problems with the camera it seems that the camera does not want to point in the direction I am traveling in, so I have decided that it would be better anyway to allow the player to look around with the camera via mouse. But I dont know how. How do I look around with the camera. thanks in advance and I hope this will be my last post(on this subject anyways).

Guns dont kill people, death kills people.
Emperor Baal
20
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 27th Dec 2003 03:00
Thats very simple




Quote: "
Amd 2500+ | 1024mb pc2700 | A7N8X-X | Geforce4 ti 4200 128mb
"
Major Payn
20
Years of Service
User Offline
Joined: 16th Dec 2003
Location: United States of America
Posted: 27th Dec 2003 04:00
that kind of works but I can only look up and down not left or right, I noticed that when I deleted the set camera to follow command the mouse look worked fine the problem is that without that piece of code the camera does not follow the tank this is getting very frustrating

the source code below is my intire program pleas paste it into darkbasic and see if you can make it work you will need a "tank6.x" and "stab06.bmp" the tank is in media under models>static>t
the "stab06.bmp" is under bitmaps>arcade>stone please help me I dont know how long I can keep sane

Guns dont kill people, death kills people.
Emperor Baal
20
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 27th Dec 2003 13:29 Edited at: 27th Dec 2003 13:39
Ah, now thats very simple to fix:



if you want the camera to be atop of the tank, then just put +15 behind "object position y(1)"

btw, about your "print" x/y/z:



it will make a nice clean list of it, <you dont have to change it if you want to>


Quote: "
Amd 2500+ | 1024mb pc2700 | A7N8X-X | Geforce4 ti 4200 128mb
"
Major Payn
20
Years of Service
User Offline
Joined: 16th Dec 2003
Location: United States of America
Posted: 27th Dec 2003 20:01
wow thank you so much It works fine now. Thats a nifty peace of code.

Guns dont kill people, death kills people.

Login to post a reply

Server time is: 2024-09-21 15:18:34
Your offset time is: 2024-09-21 15:18:34