Hi, I’m working on my first game to use OOP in AS2 and I was wondering a little bit about subclasses. I plan to have more than one level of subclasses and was wondering how I should implement them together.
Here is a little flow chart of the way i want the classes:
[CENTER]Human.as
|
[character + “Specials.as”]
|
/
[“Player”+num+“Controls”]AI.as_________
[LEFT]so basically it will go from Human.as which will contain all the basic game play functions, then based on what char is selected, it will load that chars Specials class, then finally which player is to control it or if it is AI.
How would I set something like this up?
[/LEFT]
[/CENTER]