Unity Sprite Animations
Objective: Change the simple sprite art for triple shot powerup to a sprite animation.
Sprite animations in Unity are easy to implement. Select Triple_Shot_Powerup in the Unity hierarchy window. Open up the animation window and select create animation, naming it TripleShotPowerup_anim. Notice this adds an Animation component to the game object and assigns a controller. Select the sequence of sprites from the sprite sheet and drag them into the animation dope sheet, which shows the image order and duration along the time axis. Adjust the timing in the dope sheet, and click play to preview the animation. Open the animation controller and select play. The controller on entry initiates the animation which is by default set to loop, which can be seen in the animator window. The controller allows for complicated animations which switch between states based upon events. The triple shot powerup animation calls attention to the powerup.