Game Development Reference
In-Depth Information
the kjAjpanBn]ia event handler (if you added more or fewer lh]pbkni objects in your own
project, make sure that the number and names match what you created):
l]_g]ca
w
eilknpbh]od*`eolh]u*Ikrea?hel7
eilknpbh]od*arajpo*Arajp7
eilknpbh]od*caki*Lkejp7
lq^he__h]ooI]ej[>qc?]p_danatpaj`oIkrea?hel
w
lq^he_bqj_pekjI]ej[>qc?]p_dan$%
w
]``ArajpHeopajan$Arajp*AJPAN[BN=IA(kjAjpanBn]ia%7
y
lner]pabqj_pekjkjAjpanBn]ia$arajp6Arajp%6rke`
w
++Lh]uanrolh]pbkni_khheoekj
?khheoekj*lh]uan=j`Lh]pbkni$lh]uan(lh]pbkni,(,*.(,%7
?khheoekj*lh]uan=j`Lh]pbkni$lh]uan(lh]pbkni-(,*.(,%7
?khheoekj*lh]uan=j`Lh]pbkni$lh]uan(lh]pbkni.(,*.(,%7
?khheoekj*lh]uan=j`Lh]pbkni$lh]uan(lh]pbkni/(,*.(,%7
?khheoekj*lh]uan=j`Lh]pbkni$lh]uan(lh]pbkni0(,*.(,%7
?khheoekj*lh]uan=j`Lh]pbkni$lh]uan(lh]pbkni1(,*.(,%7
?khheoekj*lh]uan=j`Lh]pbkni$lh]uan(lh]pbkni2(,*.(,%7
?khheoekj*lh]uan=j`Lh]pbkni$lh]uan(lh]pbkni3(,*.(,%7
?khheoekj*lh]uan=j`Lh]pbkni$lh]uan(lh]pbkni4(,*.(,%7
?khheoekj*lh]uan=j`Lh]pbkni$lh]uan(lh]pbkni5(,*.(,%7
y
y
y
3. Save the I]ej[>qc?]p_dan*]o file.
4. Check to make sure that I]ej[>qc?]p_dan is set as the document class in the ^qc?]p_dan*bh]
file.
5. Check to make sure that the cat on the main stage has the instance name lh]uan.
6. Save the ^qc?]p_dan*bh] file.
7. Test the project. Wow, the cat can now hop around the stage from platform to platform!
Figure 9-12 illustrates this.
 
Search Nedrilad ::




Custom Search