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.


1 Answer 1


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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .