Home
Gallery
Links
Help
Contact
Privacy Policy
Mouse Look -- 1st Person
tutorial index
___
Quick Instructions ___
Steps 1-2
___
Steps 3-4
___
Steps 5-7
___
Steps 8-10
___
Steps 11-13
___
Steps 14-15
___
starting blend
___
finished248 blend
___
finished249 blend
___
MouseLook248.txt
___
MouseLook249.txt
___
Quick Instructions
1
Positon player
2
Positon camera over the player
3
Give player something to look at
4
Parent Camera to Player
Select both Camera and Player(cube) at the same time
Parent Camera to Player
Ctrl + P key
or
3D View menu >> Object >> Parent >> Make Parent
5
Add MouseLook.py to the Text Editor
Text Editor menu >> Text >> Open
Rename MouseLook.txt to MouseLook.py (if it isn't already)
6
Add a Mouse Movement Sensor named MouseLook to Camera
Buttons Window menu >> Logic (F4)
Sensors
Add
Mouse
Movement
7
Add a Python Controller: Use MouseLook.py
Buttons Window menu >> Logic (F4)
Controllers
Add
Python
Script: MouseLook.py
8
Add a Motion Actuator named UpDown to the Camera
Buttons Window menu >> Logic (F4)
Actuators
Add
Motion
9
Add a Motion Actuator named LeftRight to the Player (cube)
Buttons Window menu >> Logic (F4)
Actuators
Add
Motion
10
Connect the Mouse Movement Sensor to the Python Controller
Buttons Window menu >> Logic (F4)
Pull wire from brass bump to brass dimple
11
Connect the Python Controller to Both Motion Actuators
Buttons Window menu >> Logic (F4)
Pull wire from brass bump to brass dimple
12
Optional: Cap amount player can look up/down
Add Property named Cap to the Camera
Buttons Window menu >> Logic (F4)
Add Property button
Type: Float
Name: Cap
Amount: your choice
13
Optional: Invert the mouse pitch
Add Property named Invert to the Camera
Buttons Window menu >> Logic (F4)
Add Property button
Type: Bool
Name: Invert
Button: True or False
14
Optional: Adjust mouse sensitivity
Add Property to Camera named Adjust
Buttons Window menu >> Logic (F4)
Add Property button
Type: Float
Name: Adust
Setting: your choice
15
Start Game Engine
Start Game Engine
P key
or
User Preference menu >> Game >> Start Game
Use the Blender 3D game engine to create a 3D computer first person shooter or role playing game with the 3D models and worlds you create.