Game Development Reference
In-Depth Information
Using the Collision.block method
Using the new method is simplicity in itself:
1. Open the I]ej[Lh]ucnkqj`*]o file. Enter the new code in bold at the bottom of the
kjAjpanBn]ia event handler. (You'll find this code in the source files as I]ej[Lh]ucnkqj`[5*]o.)
bqj_pekjkjAjpanBn]ia$arajp6Arajp%6rke`
w
++Ikrapdalh]uan
lh]uan*t'9rt7
lh]uan*u'9ru7
++?khheoekj`apa_pekj
eb$lh]uan*depPaopK^fa_p$ajaiu%%
w
ajaiu*ckpk=j`Opkl$.%7
da]hpd*iapan*se`pd))7
eb$_khheoekjD]oK__qnna`%
w
o_kna''7
iaoo]ca@eolh]u*patp9Opnejc$o_kna%7
_khheoekjD]oK__qnna`9pnqa7
y
y
ahoa
w
ajaiu*ckpk=j`Opkl$-%7
_khheoekjD]oK__qnna`9b]hoa7
y
++?da_gbknaj`kbc]ia
eb$da]hpd*iapan*se`pd8-%
w
iaoo]ca@eolh]u*patp9C]iaKran7
y
eb$o_kna:91%
w
iaoo]ca@eolh]u*patp9Ukqskj7
y
++Lnarajplh]uanbnkiikrejcpdnkqcdpdas]hh
?khheoekj*^hk_g$lh]uan(s]hh%7
y
 
Search Nedrilad ::




Custom Search