Director allows you to place a grid on the Stage for help in aligning sprites (Figure 9.10). You can use the grid as a visual reference, or you can use the Snap To setting to make sprites snap to the grid.
Sometimes you need to align sprites to a specific position on the Stage that doesn't coincide with a grid line. In this case, you can add custom guide lines, much like those in a page-layout program, and align sprites to them (Figure 9.11).
All of the controls for the grid and guides are on the Guides tab in the Property Inspector. (If the Guides tab isn't available, click anywhere on the Stage or in the Score, and it will appear.) The grid controls are in the lower half of the window, so you may have to click the expander arrow to make them visible (Figure 9.12).
The grid and guides are visible only in the Director application; they don't show up in distributed versions of your movie.
(All of these settings are done in the Grid section of the Guides tab in the Property Inspector.)
In the Grid section of the Property Inspector's Guides tab, select either Dots or Lines.
The Lines option shows a normal grid. The Dots option shows only the points where the lines in the grid intersect (Figure 9.14).
Specify the spacing of the grid lines, in pixels.
For horizontal spacing, enter a value in the W (for Width) box. For vertical spacing, enter a value in the H (for Height) box.
On the Guides tab of the Property Inspector, position your mouse pointer over the horizontal or vertical guide symbol (Figure 9.15).
The mouse pointer becomes a hand.
Depress the mouse button and drag the mouse to the Stage (Figure 9.16).
The mouse pointer is now dragging a guide.
Release the mouse button when the guide is in the desired position.
Guides are automatically made visible when you drag a new guide to the Stage. If you want to toggle the guides' visibility, choose View > Guides and Grid > Show Guides, or use the Visible check box on the Guides tab of the Property Inspector.
The visibility settings of guides and the grid are not saved with the movie file. However, the positions of any guides that you place on the Stage are saved with the movie file.
Select the Arrow tool on the Tool palette.
On the Stage, position the mouse pointer over the guide you want to move.
The mouse pointer becomes a double-headed arrow (Figure 9.17).
Drag the guide to its new location.
To remove a guide, drag it off the Stage.
To remove all guides, click the Remove All button on the Guides tab of the Property Inspector.
Locking the guides prevents you from accidentally repositioning or removing them.
The locked setting applies to all guides on the Stage. You can't lock or unlock individual guides.
Choose View > Guides and Grid > Snap to Grid (or Snap to Guides).
or
Select or deselect the Snap To check box in the appropriate section of the Guides tab in the Property Inspector.
Choose a color from the appropriate color menu on the Guides tab in the Property Inspector.