Game Development Reference
In-Depth Information
We want to check whether the event is touching the wave button. We can do so by select-
ing the
WaveButton
option in the
Parameters for Touch: On touched object
dialog
box, as shown in the following screenshot:
Now, add an action. This action is going to be
System, set variable,
and we are going to
set
isWave
to
1
. It should look like the following screenshot:
Go ahead and try out the game. You should see that when you press the
WaveButton
, the
turrets start shooting!