Game Development Reference
In-Depth Information
Next, drag and drop a Timer behavior and change the settings to ''After'' ''2''
seconds with ''Run to completion'' checked.
Lastly, drag and drop a Change Attribute behavior into the timer and change
Open Door.Timer to 0.
The complete rule is shown in Figure 8-9.
Figure 8-9. Change to True rule
Door Rules and Behavior
Assume that the door is located in a top position on the screen and will open by
going down (you could easily adapt the settings if you want it to go up or left or
right). Store the initial value of the Y position in an actor attribute and interpolate
back and forth the Y position value minus the height of the actor.
 
Search WWH ::




Custom Search