Game Development Reference
In-Depth Information
If this process doesn't work, double-check that the ?]p symbol is bound to the Lh]uan[
Lh]pbkni class by selecting the ?]p symbol in the Library and clicking the Properties
button. Also, check that I]ej[>qc?]p_dan is set as the ^qc?]p_dan*bh] document
class.
This puts you at a starting point that's just about where you left off with the Lh]uan[Fqil class. The
lh]uan object is now bound to the Lh]uan[Lh]pbkni class, which is extremely similar to Lh]uan[Fqil.
Let's take a closer look at it.
Using the Player_Platform class
This class is long, but it is almost functionally identical to Lh]uan[Fqil. The biggest difference is
a string of getters and setters at the end of the class that allow it to communicate with other classes
and objects. There are also a few modifications, such as the [^kqj_aT and [^kqj_aU variables that you
need for the lh]uan object to interact with the platforms. The class also introduces a new concept:
constants. You'll look at all of this in detail.
For now, this is what the class looks like. It's long, but you've seen most of it before:
l]_g]ca
w
eilknpbh]od*`eolh]u*Ikrea?hel7
eilknpbh]od*arajpo*Gau^k]n`Arajp7
eilknpbh]od*qe*Gau^k]n`7
eilknpbh]od*arajpo*Arajp7
lq^he__h]ooLh]uan[Lh]pbkniatpaj`oIkrea?hel
w
++?kjop]jpo
lner]pa_kjopBNE?PEKJ6Jqi^an9,*2,7
lner]pa_kjopOLAA@[HEIEP6ejp937
lner]pa_kjopCN=REPU6Jqi^an9,*47
lner]pa_kjop=??AHAN=PEKJ6Jqi^an9-*17
lner]pa_kjop>KQJ?A6Jqi^an9),*/7
lner]pa_kjopFQIL[BKN?A6Jqi^an9)-27
lner]pa_kjop>KPPKI[KB[OP=CA6qejp9-,7
++R]ne]^hao6
lner]par]n[rt6Jqi^an7
lner]par]n[ru6Jqi^an7
lner]par]n[]__ahan]pekjT6Jqi^an7
lner]par]n[]__ahan]pekjU6Jqi^an7
lner]par]n[bne_pekjT6Jqi^an7
lner]par]n[eoKjCnkqj`6>kkha]j7
lner]par]n[^kqj_aT6Jqi^an7
lner]par]n[^kqj_aU6Jqi^an7
lner]par]n[_khheoekj=na]6Ikrea?hel7
 
Search Nedrilad ::




Custom Search