Game Development Reference
In-Depth Information
When you click on it, it will show you the screen shown in Figure 2-8 . The Control Switches command is rather
simple. You choose a single switch or a batch of switches to flip, and then you decide whether you want to set them
to on or off. You can press the button labeled “...” to change the switch you are affecting (as well as give the switch a
proper name, as all switches and variables default to having a blank name). Here, I've given Switch #0001 the name of
Switch, but you can rename it to something like “ButtonPress” or “ButtonSwitch.” Once that is ready, all you have to
do is set the other options, so that they match mine shown following:
Options
Toggle on Walking Anim.
Autonomous Movement
Type: Fixed
Speed: 3:
× 2 Slower
Freq 3: Normal
Priority: Below Characters
Trigger: Player Touch
Figure 2-8. The Control Switches window
Note
the green switch that i used is from the tileset called !Switch1, namely, the one in the top-left corner.
That concludes the first event page for the button. Now, what you need to do is click New Event Page. You will
see a new tab numbered 2 appear. Make sure to toggle the conditional, as I did, and set the relevant options, as shown
following:
Conditions: Switch 0001: Switch is ON
Priority: Below Characters
Trigger: Action Button
 
 
Search WWH ::




Custom Search