Game Development Reference
In-Depth Information
Now create two rules to implement the movement of the racket. As you did
previously, you will use the keys to move the racket left and right.
Click Create Rule and add the condition ''Actor receives event''''key'' ''left''
keyboard is ''down.'' Drag and drop a Move behavior and change the settings
to:
Direction: 180
Relative to: actor
Move Type: additive
Speed: 300
Your rule should be similar to Figure 4-11.
Figure 4-11. Left movement rule
Click Create Rule and add the condition ''Actor receives event'' ''key'' ''right''
keyboard is ''down.'' Drag and drop a Move behavior and change the settings
to:
Direction: 0
Relative to: actor
Move Type: additive
Speed: 300
 
Search WWH ::




Custom Search