Simple Movement -- Blender 3D Game Engine








 
4
Add a Keyboard sensor for Left movement

Note:
The Keyboard Sensor must be named left.  Can't be named Fred or Left or anything else.  The python code looks for a keyboard sensor attached to the controller named left.

Note:
For this tutorial, I'm using the A Key for left movment

Buttons Window menu >> Logic (F4)
Sensors Add
Keyboard Sensor
Name: left
Key: A key


  
5
Add a Keyboard sensor for Right movement

Note:
The Keyboard Sensor must be named right.  Can't be named Fred or Right or anything else.  The python code looks for a keyboard sensor attached to the controller named right.

Note:
For this tutorial, I'm using the D Key for right movment

Buttons Window menu >> Logic (F4)
Sensors Add
Keyboard Sensor
Name: right
Key: D key


   
6
Add a Keyboard sensor for Running

Note:
The Keyboard Sensor must be named run.  Can't be named Fred or Run or anything else.  The python code looks for a keyboard sensor attached to the controller named run.

Note:
For this tutorial, I'm using the Right Ctrl Key for Running

Buttons Window menu >> Logic (F4)
Sensors Add
Keyboard Sensor
Name: run
Key: Rightctrl key



    




 
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.