How can I increase the sensitivity? What do I type in so i can adjust sensitivity?
I do not know any python, so a very blunt and clear answer is best. Thanks for your time and help,
~Coonerboy
That’s the second time this code has come up today! I assume you’re using 2.49b as that won’t run on 2.5x. Also, some of that code is depreciated, here’s how it should look (changes in italics):
import Rasterizer as R
cont = GameLogic.getCurrentController()
own = <b><i>cont.owner </i></b>
mPosi = cont.<b><i>sensors["MousePosi"]</i></b>
### Start mouse position at center of game screen
if <b><i>own['init']</i> </b>== 1:
R.setMousePosition(R.getWindowWidth()/2, R.getWindowHeight()/2)
<b><i>own['init']</i></b> = 0
### Move cursor to mouse position
cursorPosi = mPosi.<b><i>raySource</i></b>
own.<b><i>position = cursorPosi</i></b>
I have an ideas about sensitivity, but as I’m at work I can’t test anything out so I don’t know if it’ll actually work properly. Anyway, you could try multiplying the amount the cursor is to be moved by some value (similar to how sensitivity works in a mouselook script).
### Move cursor to mouse position
sensitivity = 2 #no idea what values to use, have a play!
cursorPosi = mPosi.raySource
cursorPosi[0] *= sensitivity
cursorPosi[1] *= sensitivity
#not sure if the z axis needs multiplying?
own.position = cursorPosi
Worth a try anyway! Let me know if it works (and remember to use code tags when pasting code: click advanced then the # symbol).
The sensitivity I used…err, well… its gonna seem crazy high. It is this high due to how I have everything set up (which is probably not the most efficient way, but it works) I have it at 40. :eek:
Thanks again!