Graphics Reference
In-Depth Information
clicking the Ini button to the right of the states, and you can select all states by clicking the All button. You can
set the currently selected mask to be the default state mask by selecting Store Init State.
Figure 15-35 The States panel
To get the temporary protection effect from the green balls, three states will be used. The first state will con-
tain the main logic described previously for the character. It will also contain the logic for what to do when a
green ball is touched. The first state will be active at initialization. When the green ball is touched, the second
state is deactivated (subtracted) and the third state is activated (added), as shown in Figure 15-36 .
Figure 15-36 Character logic for state 1
The second state, shown in Figure 15-37 , will contain the logic for ending the game when the character hits
a wizard. This state will also be active on initialization, because this is the default behavior. When this state is
deactivated, the character can collide with the wizards without ending the game.
 
 
 
 
Search WWH ::




Custom Search