Game Development Reference
In-Depth Information
Figure 10-21. Weight Setting rule
Next, you will create a rule that will detect when the InMovement attribute
changes to false in order to reset the weight to its starting position.
Create a new rule named ''Go to starting position.'' The condition of this rule is
''Attribute'' ''game.InMovement'' is ''false.''Drag and drop three Change Attribute
behaviors into the rule and change:
Weight.Position.X to Weight.InitX
Weight.Position.Y to Weight.InitY
Weight.Rotation to 0
The rule is shown in Figure 10-22.
Search WWH ::




Custom Search