Chapter 3
120
Reset the camera
Once the camera starts moving around the world, it can be tricky for the user to return to the
original camera position—unless you’ve included a way to reset the camera. Fortunately, Director
MX has a Reset Camera behavior, which you’ll now apply.
1
In the Library palette, verify that 3D > Actions is selected. Drag the Reset Camera behavior to
the Magic trick sprite.
2
In the Parameters for Reset Camera dialog box, type
reset camera
in the Which Group Does
This Behavior Belong To text box. Then click OK.
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 trick 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, verify that The Custom Key I’ve Entered
Below is selected.
•
With the insertion point in the If Using a Custom Key, Enter It Here text box, press the
Spacebar. The insertion point will move one space to the right.
•
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.
Содержание DIRECTOR MX-USING DIRECTOR MX
Страница 1: ...Using Director MX Macromedia Director MX...
Страница 12: ...Contents 12...
Страница 156: ...Chapter 4 156...
Страница 202: ...Chapter 6 202...
Страница 244: ...Chapter 7 244...
Страница 292: ...Chapter 10 292...
Страница 330: ...Chapter 12 330...
Страница 356: ...Chapter 13 356...
Страница 372: ...Chapter 14 372...
Страница 442: ...Chapter 16 442...
Страница 472: ...Chapter 18 472...
Страница 520: ...Chapter 19 520...
Страница 536: ...Chapter 20 536...
Страница 562: ...Chapter 23 562...
Страница 566: ...Chapter 24 566...
Страница 602: ...Chapter 27 602...