Game Development Reference
In-Depth Information
''Attribute'' ''Door.Position.Y'' ''≠'' ''Door.InitialY''
The second condition will check that the door is closed.
Drag and drop an Interpolate behavior and change the settings to
''Door.Position.Y'' ''Door.InitialY'' ''0.5'' ''Linear.''
The complete rule is shown in Figure 8-12.
Figure 8-12. OpenDoor is False rule
Victory Hole Rules and Behaviors
The final step in this part is to reset the game when the ball touches the Victory
Hole actor. For a real game, you would change scene to the next level.
Create a new rule with the condition ''Actor receives event'' ''overlaps or
collides'' with ''actor of type'' ''ball.'' Then drag and drop a Reset Game behavior
into the rule as per Figure 8-13.
 
Search WWH ::




Custom Search