![]() If he is in water, then he acts very differently than when on land. If we use Mario as an example, you could say that he has many obvious states that determine how he behaves. Anything from variables to objects can be used to calculate what a character state is. These behaviors can be turned on or off based on a character's state. Implementing behaviors where many things can happen is much easier if you break it down into tiny behaviors. ![]() Sometimes, calculating seemingly complex things can be simplified simply by thinking about the problem as a series of problems. ![]() Track a Character State Using Compound Objects ![]()
0 Comments
Leave a Reply. |