2D Shooter: Animating the Speed Boost and Shield Powerup

Adding the animations for the Speed Boost and Shield will be just like what we did for the Triple Shot. Make sure that both prefabs are easily selectable by dragging them to the hierarchy and then click the one you want to start with. While it’s selected, go to the animation window and click “create”

Instead of Player, it should say the name of the object you selected.

Once you named your animation file, click the recording button and then drag all the animation sprites you need by using “shift + click” into the timeline. From here you can manipulate the frames so you can lengthen or shorten the animation. After this, you need to do the same with your other powerup, and you’ll be all set to go!