1st Person Mouse Look -- Blender Game Engine


  
pageok


8.  Add a Motion Actuator named UpDown to the Camera

Note:
The Actuator must be named UpDown.  Can't be named Fred or updown or anything but UpDown.  The python code looks for an actuator attached to the camera named UpDown.

Camera selected:  Object Mode

Buttons Window menu >> Logic (F4)
Actuators
Add
Motion
Name the Motion Actuator
Name it: UpDown

 

9.  Add a Motion Actuator named LeftRight to the Player (cube)

Note:
The Actuator must be named LeftRight.  Can't be named Fred or leftright or anything but LeftRight.  The python code looks for an actuator attached to the Player named LeftRight.

Player selected:  Object Mode

Buttons Window menu >> Logic (F4)
Actuators
Add
Motion
Name the Motion Actuator
Name it: LeftRight

 
 
10.  Connect the Mouse Movement Sensor to the Python Controller 

Both Camera and Player selected:  Object Mode

Buttons Window menu >> Logic (F4)
Pull wire from brass bump to brass dimple

 

  
pageok