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 / Help FPS. mouse screen move

Author
Message
xxdemzxx
19
Years of Service
User Offline
Joined: 23rd Jul 2005
Location: CA
Posted: 26th Aug 2005 12:31
Im making an fps, and use the arrow keys to move the screen. How would I go by making the mouse move the screen. Like you can look up down and all around then you can walk in the direction of the camera but stay on the floor...
Right now im using:

CaMeRoN H
19
Years of Service
User Offline
Joined: 21st Aug 2005
Location: Who knows?
Posted: 26th Aug 2005 17:32

Use that in a do loop and you should be able to aim with your mouse


Current Project: Stealth Operations (Fps)
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 26th Aug 2005 21:04 Edited at: 26th Aug 2005 21:05
If you are using a matrix for the floor:



This moves with the arrow keys and steers with the mouse - always keeping you on the matrix. Alter the value 50 to suite the required height off the floor that you want.

TDK_Man

xxdemzxx
19
Years of Service
User Offline
Joined: 23rd Jul 2005
Location: CA
Posted: 26th Aug 2005 21:57
TDK - It works but you can spin updside down to... how can this be fixed? Also how would you do gun bouncing and kickback.

To create my gun im using:
CaMeRoN H
19
Years of Service
User Offline
Joined: 21st Aug 2005
Location: Who knows?
Posted: 28th Aug 2005 03:54
umm


Current Project: Stealth Operations (Fps)
master programmer
19
Years of Service
User Offline
Joined: 30th May 2005
Location: 3D Space
Posted: 28th Aug 2005 09:37
To keep it from spinning upside down, use something that detects if it is above 90 degrees. Like if camera angle x()=>90 then BLAH
As for the bouncing..........no idea.

Login to post a reply

Server time is: 2024-11-27 18:39:23
Your offset time is: 2024-11-27 18:39:23