Game Development Reference
In-Depth Information
Figure 9-19. Modified Brick1 rule
Brick2
Repeat the modification. Open the Brick2 actor in the Actor Editor and add a
condition set to ''Any.'' The new rule is ''Actor receives event'' ''overlaps or
collides'' with ''actor of type'' ''Bullet'' as per Figure 9-20.
Figure 9-20. Modified Brick2 rule
Racket
Open the Racket actor in the Actor Editor and create a new rule. The condition
is ''Attribute'' ''game.AutoBullet'' is ''true.'' Drag and drop a Timer behavior set
to ''Every'' ''1'' second. Then, drag and drop a Spawn Actor behavior and modify
the settings to:
Actor: Bullet
Layer Order: in back of actor
Direction: 0
Position: 0&0
Relative to: actor
Drag and drop a Play Sound behavior and change the settings to:
Sound: bullet fire
Run to completion: checked
 
Search WWH ::




Custom Search