Game Development Reference
In-Depth Information
Introducing triggers
In the game, there are special elements that change the states of specific objects and
switch them on and off. They are called
triggers
. They can have a dozen applica-
tions: they may turn on a lift or turn off water in the pipes. The following figure shows
examples of triggers:
The following are the basic variations of triggers:
•
On-floor trigger
: It is activated when somebody steps on it and can be either
the protagonist or any other robot.
•
Universal color trigger
: It responds to a shot that hits its surface. The trigger
is indifferent to the color of the shot. The fact that a bubble has touched the
spot is more important.
•
Specific color trigger
: This trigger reacts to shots made of a specific color:
red, green, and so one. This can be tricky.