pageok

  

Simple Movement -- Blender 3D Game Engine








  
19
Connect Delay sensor >> NAND Controller >> State Actuator

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

   
20
Switch to State Mask Group 1

State GUI
Select State Mask Group 1


   
21
Backwards Movement
1.  Add a Keyboard Sensor: S key
2.  Add an AND Controller
3.  Add a Motion Actuator -- Servo Control
4.  Connect Keyboard Sensor (S key) >> AND Controller >> Servo Control
5.  Connect Keyboard Sensor (S key) >> NOR Controller

Note:

The Servo Control to stop the game object has already been set up.  To use it, all we have to do is connect the S key to the NOR Controller.

1.  Add a Keyboard Sensor: S key
Buttons Window menu >> Logic (F4)
Sensors Add
Keyboard Sensor
TRUE level triggering: Enabled
Key: S key

2.  Add an AND Controller
Buttons Window menu >> Logic (F4)
Controllers Add
AND Controller

3.  Add a Motion Actuator -- Servo Control
Buttons Window menu >> Logic (F4)
Actuators Add
Motion Actuator -- Servo Control
X-axis
linV = 0.0
Limit not enabled
Y-axis
linV = -10.0
Limit -- Max: 200.0
Limit -- Min:  -200.0
Z-axis
linV = 0.0
Limit -- Max: 0.0
Limit -- Min:  0.0

4.  Connect Keyboard Sensor (S key) >> AND Controller >> Servo Control
Buttons Window menu >> Logic (F4)
Pull wire from brass bump to brass dimple

5.  Connect Keyboard Sensor (S key) >> NOR Controller
Buttons Window menu >> Logic (F4)
Pull wire from brass bump to brass dimple


   




  
pageok