Game Development Reference
In-Depth Information
This will detect that the projectile is back to its original position.
Drag and drop a Change Attribute behavior into the Attributes reset rule and
change projectile.Color.Alpha to 1. Drag and drop a second Change Attribute
and change game.Change Projectile to false. The Attributes reset rule is shown
in Figure 6-43.
Figure 6-43. Attributes reset rule
Resetting the Game After Four Attempts
This last step is very easy. Just create a new rule in the Projectile actor instance
and name it ''Reset the Game.'' The condition of the rule is ''Attribute''
''game.Attemptleft'' ''='' ''0.'' Then drag and drop a Reset Game behavior into
the rule. The Reset the Game rule is shown in Figure 6-44.
Figure 6-44. Reset the Game rule
 
Search WWH ::




Custom Search