Game Development Reference
In-Depth Information
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
eb$dehh*depPaopLkejp$lh]uan*t(lh]uan*u(pnqa%%
w
lh]uan*t)9rt7
lh]uan*u)9ru7
y
y
3. Save the I]ej[Lh]ucnkqj`*]o file and test the project. Try and move the lh]uan object off the
hill. You can't do it, can you? As soon as its center point attempts to leave the area of the hill,
its movement is blocked. Figure 7-31 shows what you'll see.
Figure 7-31. The player's movement is blocked when its
center x and y point attempts to leave the hill.
 
Search Nedrilad ::




Custom Search