Mr C. and I finally cracked the cross-class communication problem. This was the main obstacle in my path. What we did is figure out that static class vars can communicate globally over classes (given). To access a static var, the class name is used, first, in standard dot notation. The solution was for singular instances to create static vars of themselves. Multiple instances will be tracked through the level via classification using static Arrays.
The bat AI would not register. Other externalized MCs have their icons turn green. The problem was that the constructor had a typo. No code could be accessed without its correctly being spelled.
The bat AI is coming nicely. The spider is next. I need the poleVault, stabNSwing, and finishingBlow animations for LOD3.
*It is important that all final MovieClip animations face to the RIGHT.* Otherwise, they will be facing the wrong way when accessed by the code.
Jack should be starting on creating the core HUD mechanics while waiting for the designs. It may be difficult for him to finish on time, otherwise.
No comments:
Post a Comment