Game Development Reference
In-Depth Information
Figure 4-5. Loosing rule
Next, create a rule that will destroy the ball when the last brick has been
destroyed and will also display the text ''You Win!'' Click Create Rule and add
the condition ''Attribute''''game.BrickCount''''=''''0.'' Drag and drop a Change
Attribute behavior and change game.TextToDisplayto ''You Win!'' Then, drag
and drop a Destroy behavior just below the Change Attribute behavior. Your rule
should be similar to Figure 4-6.
Figure 4-6. Finishing the game
 
Search WWH ::




Custom Search