Game Development Reference
In-Depth Information
Figure 10-12. On is pressed rule
This rule is used to detect a touch in the On area and then it changes the
InMovement attribute to true. You will use this attribute to authorize the
movement of the pendulum.
Off Rules and Behaviors
Create a group and name it ''Position the Off button.'' Drag and drop a Change
Attribute behavior and change on.Position.X to 260. Drag and drop a second
Change Attribute behavior and changeon.Position.Y to 30.
Drag and drop a Display Text behavior and type the text ''Off'' inside. You can
leave all other settings as the defaults. The action view should match
Figure 10-13.
 
Search WWH ::




Custom Search