1st Person Mouse Look -- Blender Game Engine




 
  





5.  Add MouseLook.py to the Text Editor

Note:
If you downloaded either the starting blend or the finished blend, you can find MouseLook.py in the Text Editor.  

Download:

Text Editor menu >> Text >> Open
Rename MouseLook.txt to MouseLook.py

 


6.  Add a Mouse Movement Sensor named MouseLook to Camera

Note:
Sensor must be named MouseLook.  Can't be named Fred or mouselook or anything else.  The python code looks for sensor attached to the camera named MouseLook.

Select Camera:  Object mode

Buttons Window menu >> Logic (F4)
Sensors
Add
Mouse
Movement
Name the Mouse Movement Sensor
Name it: MouseLook

 
 
7.  Add a Python Controller:  Use MouseLook.py

Camera selected:  Object Mode

Buttons Window menu >> Logic (F4)
Controllers
Add
Python
Script:  MouseLook.py

 

  
Game developers can use the game engine to create casual video games, first and third person shooters, role playing games, racing simulations and more. The game engine can be used to make both 2D games and 3D games.  Beginning game developers will only need basic knowledge of game design and programming to create rich and complex game models with photo realistic textures to add detail to the graphics of the video game.  Today's games need more than good looking low polygon game models.  Use normal maps and photo realistic textures to create high quality game models.