When we are making a game, one of the key elements is animation. I will show you now how to animate sprites for a 2D game.
This is what our animation will look like:
First, let’s get the first sprite and drag it to our Hierarchy panel. Change the name to “Explosion”.
Next, we need to make sure that our GameObject “Explosion” is selected and go to Window -> Animation -> Animation. A new panel will open. Click on the “create” button and name our animation.
Click on The red button in Animation Tab.
Click on the first sprite of our animation, hold shift, click on the last sprite, and drag and drop it in Animation Tab.
Our explosion animation is ready!