Game Development Reference
In-Depth Information
The rule is shown in Figure 10-16.
Figure 10-16. Interpolate to 100 rule
Create a new rule with the following conditions:
''Attribute''''Pendulum.Rotation''''=''''100''
''Attribute''''game.InMovement'' is ''true''
Then drag and drop an Interpolate behavior and change the settings.
Interpolate Attribute: Pendulum.Rotation
To: 80
Duration: game.speed
Function: Linear
Next, drag and drop a Play Sound behavior and select sound4 as the sound to
play. Leave all the other setting as the defaults.
The rule is shown in Figure 10-17.
Search WWH ::




Custom Search