What's New in Director 8.5 > Director 8.5 Tutorial > Use the camera > Add the Reset Camera trigger |
![]() ![]() ![]() |
Add the Reset Camera trigger
For the trigger, you will specify that the camera resets whenever the user presses the Spacebar.
1 |
Drag the Keyboard Input behavior from the Cast window to the Magic tricks sprite on the Stage. |
2 |
In the Parameters for Keyboard Input dialog box, specify the following: |
![]() |
In the "Which key will be used?" pop-up menu, select "The custom key I've entered below." |
![]() |
In the "If using custom key, enter it here" text box, press the Spacebar. |
![]() |
In the "Which modifier key will be used?" pop-up menu, verify that "No modifier key" is selected. |
![]() |
In the Select a Group and Its Action pop-up menu, select Group Reset Camera - Reset Camera. Then click OK.
|
![]() |
Now, when you play the movie and move the camera around the world, you can press the Spacebar to return the camera to its original position.
![]() ![]() ![]() |