Game Development Reference
The last state that you need to create is the button's Down state.
Creating the Down state
To create the button's Down state, you'll simply copy all the graphics from the Over state and move
them slightly down and to the right. This is a very basic way to create the illusion that the button is
being pressed down when you click it. Follow these steps to create the Down state:
1. Insert keyframes in both the background and foreground layers of the button's Down state. This
will give you an exact copy of the Over state, as shown in Figure 2-56.
Figure 2-56. Insert keyframes in the button's Down state
to copy the text and graphics from the previous frame.
2. Select all the graphics with the Selection tool. (You can do this by dragging a rectangular selec-
tion box around the graphics with the Selection tool.) Use the arrow keys on your keyboard to
move them slightly down and to the right. You just need to nudge it two or three pixels in each
direction. Figure 2-57 shows a slightly exaggerated example of this.
Figure 2-57. Select all the text and graphics and nudge
them slightly down and to the right, creating the illusion
that the button is being physically pressed.