Changing Cameras -- Blender 3D Game Engine


 

 
11.  Add an AND Controller

Camera Selected

Buttons Window menu >> Logic (F4)
Controllers Add
AND Controller
State Mask Group 2

  
12.  Add a Scene Actuator (Set Camera):  Cam1

Note:
When the C Key is pressed, we want to change the active camera from Cam2 back to Cam1.

Buttons Window menu >> Logic (F4)
Actuators Add
Scene Actuator
Set Camera.
OB: Cam1

      
13.  Connect Keyboard Sensor >> AND Controller >> Scene Actuator

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

  
14.  Add a State Actuator --  Cpy: State Mask Group 1

Note:
We are going to use the State Actuator to switch from State Mask Group 2 back to State Mask Group 1.

Buttons Window menu >> Logic (F4)
Actuators Add
State Actuator
Cpy:  State Mask Group 1


 
 
The Blender 3D and game engine tutorials were created as a series of step by step instructions and help you create computer games. Use the tutorials to make casual video games, First Person Shooter games, role playing games, racing simulation games and more. Use the tutorials as a self paced learning tool to model and program your own three-dimensional world and then play on your computer.