Graphics Reference
In-Depth Information
Figure 15-5 Up Arrow selected in the Keyboard sensor
3. IntheControllerscolumn,addacontrollerinthesamewayyouaddedasensorpreviously,bychoosing
And from the Add Controller menu. The And controller means that if multiple sensors are connected to
theleftsideofthecontroller,theactuatorontherightwillbetriggeredonlywhenallofthesensorcriteria
aremet.Connectthesensorlogicbricktothenewcontrollerbrickbyholdingdowntheleftmousebutton
and dragging your mouse from the small circle on the right of the sensor brick (the outlet) to the small
circle on the left of the controller (the inlet), as shown in Figure 15-6 . This connection can be severed
by holding Ctrl and the left mouse button and dragging your mouse across the connecting line, as though
cutting it with a knife.
4. To complete this logical circuit, add an actuator to the Actuators column. In this case, you'll start by
making the armature walk according to the walk cycle set up in Chapter 14, “Creating Assets for the
Blender Game Engine,” so select Action from the Add Actuator drop-down menu, as shown in Figure
15-7 . Recall that the walk cycle action you created in Chapter 14 was called Walk, and it cycled from
frame 1 to frame 20. Enter the name of the action in the Action field and the start and end frame numbers
in the Start Frame and End Frame fields, respectively.
 
 
 
Search WWH ::




Custom Search