Based on the example video, you will need 2 animations :
So when the spaceship moves to destination for shooting, it will change to SHOOTING animation.
When shooting complete, it will go back to MOVING animation and go away.
You can add an instance variable on your spaceship that manages the state that the spaceship is shooting or moving.
Here is my example for you :