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.

Author
Message
Falelorn
23
Years of Service
User Offline
Joined: 19th Jun 2003
Location: Canada
Posted: 7th Sep 2003 09:52
Anyone have a mouse look FPS camera control that I can see/have the code?

The FPS tutorial with DBPro doesnt work, not understanding the problem.
ReD_eYe
23
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 7th Sep 2003 11:53
here you go


that works fine, allows you to look around with the mouse and move backwards and forwards by clicking


CattleRustler
Retired Moderator
22
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 7th Sep 2003 20:17
I am using the code from the fps tutorial. the code has 2 errors in two lines next to each other. You probably see the error when trying to compile. Look at thos 2 lines carefully as they are both missing a < symbol (or > symbol) I forget which. you can either fix em or like I did, remove em

-RUST-
Ronaldaveo
23
Years of Service
User Offline
Joined: 1st Sep 2002
Location: England
Posted: 7th Sep 2003 20:53
I like using this:



Someone at RGT gave it to me ages ago, can't remember who though :/
Falelorn
23
Years of Service
User Offline
Joined: 19th Jun 2003
Location: Canada
Posted: 8th Sep 2003 00:33
Thanks all
Falelorn
23
Years of Service
User Offline
Joined: 19th Jun 2003
Location: Canada
Posted: 8th Sep 2003 01:23
WASD movement control A D for side step. How do you do that?
W D for forward/back is easy, but the side step is a pain.
Ronaldaveo
23
Years of Service
User Offline
Joined: 1st Sep 2002
Location: England
Posted: 8th Sep 2003 01:34 Edited at: 8th Sep 2003 02:27
I cant remember exactly at the moment but it involves the

newxvalue() and newzvalue() commands

you have to enter the current x/z position the desired y angle and how far you want to go

unfortunately i cant remember how to do it :/ but u need to use both of them in order to go one direction

[edit] i think to go left the angle is -90 and right is +90 and a wrapvalue in there too
Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 8th Sep 2003 01:37 Edited at: 8th Sep 2003 01:38
Position an object in the same position and with the same orientation as the camera, then use

MOVE OBJECT LEFT and
MOVE OBJECT RIGHT

on the object and then update the camera's position from the new position of the object.

Ronaldaveo
23
Years of Service
User Offline
Joined: 1st Sep 2002
Location: England
Posted: 8th Sep 2003 02:25
Ill post this here to save another topic

Can anyone see whats wrong with this, probably something I have overlooked but I remember something similar to this working in dbc,




I just wanted to get it working again

Thanks RefuG

Login to post a reply

Server time is: 2026-07-23 12:10:26
Your offset time is: 2026-07-23 12:10:26