Game Development Reference
In-Depth Information
Figure 10-14. Off is pressed rule
This rule is used to detect a touch in the Off area and then it changes the
InMovement attribute to false. You will use this attribute to stop the movement
of the pendulum.
Pendulum Rules and Behaviors
Create a group and name it ''Position the pendulum.'' Drag and drop a Change
Attribute behavior and change on.Position.X to 160. Drag and drop a second
Change Attribute behavior and change on.Position.Y to 100 as per Figure 10-15.
 
Search WWH ::




Custom Search