Using Director > Sprites > Positioning sprites > Positioning sprites with the Property Inspector |  |

Positioning sprites with the Property Inspector

You can use the Property Inspector to specify the exact coordinates of a sprite.

To set sprite coordinates in the Property Inspector:

1 | With the Property Inspector open and in Graphical view, select a sprite to reposition.
2 | On the Sprite tab of the Property Inspector, specify the sprite coordinates in pixels, with 0,0 at the upper left corner of the Stage, as follows:
| Specify attributes in the X and Y fields to change the horizontal and vertical coordinates of the registration point.
| Specify coordinates in the W and H fields to change the width and height of the sprite.
| Specify values for l, r, t, and b to change the left, right, top, and bottom edges of the sprite's bounding rectangle.
| To move the sprite without resizing it, adjust only the x and y coordinates.

Positioning sprites with the Tweak window

You can use the Tweak window when you want to move sprites by a certain number of pixels.

To position sprites with the Tweak window:

1 | Choose Modify > Tweak.
2 | Select the sprite or sprites you want to move, as described in Selecting sprites.
3 | In the Tweak window, drag the point on the left side of the window or enter the number of pixels in the fields for horizontal and vertical change; then click Tweak.
4 | If you want to repeat the move, click Tweak again.