Animating your actors can add life and visual interest to your game. In “Angry Birds”, the birds awaiting their turn in the slingshot don’t just sit there – they bounce, hop, and tweet their excitement. This energy is contagious to your players! Consider making your live creatures move around, even when they’re standing still; make the clouds drift by, and make the gold sparkle.
Placing animate behaviors into rules lets us choose how and when the animations play. For instance:
Adjusting this for a “standing still” animation or a “falling” animation is simply a matter of changing out the rule conditions. For instance, a “falling” animation might check if the Y-axis linear motion is less than 0 (more than 0 would be moving upward), and that the actor isn’t touching the ground. Of course, we’d also want to change out the individual animation images to for ones that simulate falling.