Mouse yaxis and xaxis sensitivity
by Rik Girbes · in Torque Game Engine · 11/01/2007 (8:49 am) · 3 replies
The camera in first person is controlled by the mouse.
how can i make the camera rotate slower?
like when you move your mouse to watch to the left, how can i make the camera move slower?
like how can you give the mouse a amount of control of the yaxis and xaxis?
like in alot of games where in the options dialog, you can give the mouse a amount of sensitivity of the yaxis and the xaxis.
sorry for the bad explaination, i hope you understand it.
thank you so much, Rik Girbes.
how can i make the camera rotate slower?
like when you move your mouse to watch to the left, how can i make the camera move slower?
like how can you give the mouse a amount of control of the yaxis and xaxis?
like in alot of games where in the options dialog, you can give the mouse a amount of sensitivity of the yaxis and the xaxis.
sorry for the bad explaination, i hope you understand it.
thank you so much, Rik Girbes.
#2
I have an idea, i just make a GUI control, and asign it to a string, than instead of "90" i write down the String.
that way people can do it themselfs.
Thanks Again, Rik Girbes
11/04/2007 (1:54 am)
Thank You very much, realy thanks.I have an idea, i just make a GUI control, and asign it to a string, than instead of "90" i write down the String.
that way people can do it themselfs.
Thanks Again, Rik Girbes
#3
Yes, you can do all kinds of nifty things with that. You can even build a slider GUI and tie this value/variable to it.
I think there is a resource out there somewhere that includes something like that with several other visual settings/tweaks on a modified Options dialog box. Pretty cool stuff.
[edit: fixed some typos]
11/04/2007 (5:12 am)
Glad to help out. Yes, you can do all kinds of nifty things with that. You can even build a slider GUI and tie this value/variable to it.
I think there is a resource out there somewhere that includes something like that with several other visual settings/tweaks on a modified Options dialog box. Pretty cool stuff.
[edit: fixed some typos]
Torque Owner Aaron E
Default Studio Name
Here's a quick and painless way to get that effect.
1) Locate and open up the file default.bind.cs from the starter.fps/client/scripts folder
2) Next, find the getMouseAdjustAmount function. It should look like this . . .
function getMouseAdjustAmount(%val) { // based on a default camera fov of 90' return(%val * ($cameraFov / 90) * 0.01); // AE - a value of 900 here would make the mouse feel less responsive (9000 would be very slow) }3) Change the divide by 90 value to a much larger number4) Delete all the .DSO file for that script
5) Restart Torque
6) Run around and test the new settings
7) Repeat steps 3 - 6 until everything feels right to you.
Good luck and have fun.