4
$\begingroup$

Is there a mouselook script that's exactly the same as the classic one except it moves left and right, not up and down. If there isn't one then can you show a property hook script that enables/disables up and down rotation.

$\endgroup$
1
  • $\begingroup$ Are you referring to the mouse wheel up/down? I don't think wheel left/right is supported. What about mouse movement? - that gives you 4 directions. $\endgroup$
    – sambler
    Nov 16 '13 at 10:13
2
$\begingroup$

The mouse move script allows cutomization. In order to restrict up/down rotation you could add the properties as shown in the image.

enter image description here

$\endgroup$
5
  • $\begingroup$ Thanks! Helped a lot, I just have one tiny thing which I feel stupid about since I can't fix it. I needed this for the collision bounds(ml.cap). Everytime I hit "P," the character in the collision bounds flips over when I move my mouse, do you know how to fix it? $\endgroup$
    – blackhole
    Nov 16 '13 at 16:56
  • $\begingroup$ @TheBasicTroublemaker The P key is not bound to an action in the demo, this is probably an issue in your scene, you could add a few print statements to find out where the character flips. $\endgroup$
    – stacker
    Nov 16 '13 at 18:46
  • $\begingroup$ Would it be okay if I give you the .blend, and you can see the prob? $\endgroup$
    – blackhole
    Nov 16 '13 at 19:20
  • 1
    $\begingroup$ @TheBasicTroublemaker I don't have much experience with the BGE but you could ask that as another question and add the .blend file there. $\endgroup$
    – stacker
    Nov 16 '13 at 19:42
  • $\begingroup$ Oh, well thanks thought! Really appreciate it. $\endgroup$
    – blackhole
    Nov 16 '13 at 19:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.