pageok

  

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



    




 
pageok