Graphics Reference
In-Depth Information
Figure 15-9 A Motion actuator
8. To give the character the ability to turn right, add a sensor for the right arrow on the keyboard and
connect it via a new controller to another Action actuator identical to the previous one, and add a Mo-
tion actuator with a negative Rot value around the local z-axis, as shown in Figure 15-10 . Do the same to
make the character turn left with the left-arrow key and walk backward with the down-arrow key.
Figure 15-10 Logic bricks for turning right
If you press P now, you should find that your character now is able to walk around the scene. However, the
vertical placement of the character does not change, so it may seem that your character is walking on air, and
furthermore walls and obstacles do not put up any resistance. To remedy this, you must enable some dynamic
properties on your character.
 
 
 
Search WWH ::




Custom Search