In this recipe, we are going to create animated characters that will serve as decorations in the game. Such characters' behavior is driven only by animations; thus, we can have quite a large number of them in the game.
Creating background characters and critters with animation-driven behavior
Getting ready
Before we start, we need to have a character with a few animations. In this example, we are using a bird. It has Idle, StartFlying, FlyingInCircles, and Land animations. The Idle animation is looped and played when our birds sits on the ground. The StartFlying animation is a transition between Idle and FlyingInCircles, which is a looped animation of the bird flying around. The last...