Game Development Reference
In-Depth Information
Duration: 1
Function: Linear
The rule is show in Figure 5-26.
Figure 5-26. Orange rule
Let's do the red warning now. Create a new rule in the actor named ''Red'' with
the following condition: ''attribute''''game.EnergyBar''''<''''50.'' Then drag and
drop an Interpolate behavior and change the settings to:
Interpolate attribute: Energy bar.Color.Green
To: 0
Duration: 1
Function: Linear
The rule is show in Figure 5-27.
 
Search WWH ::




Custom Search