2009

Table Of Contents
3. Add a key press event:
In the events view, click .
In the properties view, select the Key Up option in the Trigger On field.
Click the Press Key button, and press 1 on your keyboard.
4. Add a set variable action:
In the actions view, click .
In the properties view, enter door_open in the Variable Name field.
Type 1 in the Value field.
5. Add a pause action:
In the actions view, click .
6. Add a play animation action:
In the actions view, click .
In the properties view, select Door 1 in the Animation field.
Select the Pause at End check box.
Select Start in the Starting At field.
Select End in the Ending At field.
To create a script to close a door:
1. In the Scripter window, click , and rename the added script to 'Close Door'.
2. Add a variable event:
In the event view, click .
In the properties view, enter door_open in the Variable field.
Animation Exercise
434