Game Development Reference
In-Depth Information
Click the Images tab to display the images resources and drag and drop
Bullet-img.png into the actor.
Your newly created actors should be similar to Figure 9-14.
Figure 9-14. Actor Inspector
Implementing the Extra-Bonus Rules and
Behaviors
Basically, you want the bricks containing the extra bonuses to spawn an extra-
bonus actor. The extra-bonus actor will move down and when it overlaps with
the racket, it will enable the bonus.
50 pt cap
Open the 50 pt cap actor in the Actor Editor. Drag and drop a Change Velocity
behavior into the actor and change the settings to:
Direction: 270
Relative to: scene
Speed: 150
Create a new rule and set the condition to ''Actor receives event''''overlaps or
collides'' with ''actor of type''''racket.'' Drag and drop a Change Attribute
behavior and change game.Score to game.Score+50. Drag and drop a Destroy
 
Search WWH ::




Custom Search