Game Development Reference
In-Depth Information
4. Double-click the new >]_gPkOp]np>qppkj symbol in the Library to enter symbol editing mode.
Modify it so that it looks similar to Figure 3-15. Remember to modify the button in all three
frames: Up , Over , and Down .
UP
OVER
DOWN
Figure 3-15. Create the BackToStartButton symbol.
5. Double-click the DehhL]ca symbol in the Library to enter symbol editing mode.
6. Create a new layer called buttons .
7. Make sure that the buttons layer is selected. Drag an instance of the >]_gPkOp]np>qppkj onto
the stage and position it somewhere that seems appropriate.
8. Give the button the instance name backToStartButton in the Instance name box of the Properties
panel.
9. Double-click the Lkj`L]ca symbol in the Library to enter symbol editing mode. Follow steps 6
to 8 to add the new button to the Lkj`L]ca symbol.
10. When you finish, the Lkj`L]ca and DehhL]ca symbols will look something like Figure 3-16.
HillPage Symbol
PondPage Symbol
Give both buttons the instance name: backToStartButton
Figure 3-16. The finished HillPage and PondPage symbols
11. Open the I]ej*]o file. Add the following new code to the program:
l]_g]ca
w
eilknpbh]od*`eolh]u*Ikrea?hel7
eilknpbh]od*arajpo*IkqoaArajp7
lq^he__h]ooI]ejatpaj`oIkrea?hel
w
r]nop]npL]ca6Op]npL]ca7
 
Search Nedrilad ::




Custom Search