5
$\begingroup$

How can I zoom in and out using the mouse wheel in the BGE? And press the middle button to go move around the character?

I want the camera to be parent to the character so that it will follow it.

$\endgroup$
7
$\begingroup$

One way to do this is by adding an empty at the point which you want the camera to orbit around, and adding a mouse look actuator to it:

enter image description here

Then parent the camera to it with ⎈ CtrlP.

For zooming, you can do something like this on the camera:

enter image description here

enter image description here

$\endgroup$
  • $\begingroup$ And how we can set how far the zoom stop? $\endgroup$ – user18565 Oct 5 '15 at 11:45
  • $\begingroup$ This, for sure, isn't the only way. You can surely do it in Python. $\endgroup$ – Adrians Netlis Aug 17 '16 at 21:22
  • $\begingroup$ @AdriansNetlis Yes.. And..? (the first sentence of my answer starts with "one way to do this..") $\endgroup$ – gandalf3 Aug 17 '16 at 22:36
  • $\begingroup$ Sorry, my reading mistake. I read as if you had told "Only way to do this".;) $\endgroup$ – Adrians Netlis Aug 18 '16 at 8:38

protected by David Nov 21 '16 at 22:03

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

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