2D Galaxy Shooter — Animated Damage and Thruster VFX on the Player

Marcus Cohee
2 min readAug 27, 2021


Hello all!

Today, I will go over how to add damage and thruster VFX to our player! This is our last visual addition before we go through post processing!

Adding the Thruster and Damage Sprites

  • Thruster
  1. Find a good sprite for a thruster, add it to the game, then rename it Thruster.
  2. Position it to where it looks best on the player
  3. Make it a child of the Player so it travels with it.
  4. Add animations if you want.
  5. We are now done with the thruster!
  • Damage
  1. Find a good sprite of a fire with a smoke trail, add it to the game, then rename them Left or Right_Engine.
  2. Position them how you would like them on the Player.
  3. Make them a child of the Player.
  4. Turn their Transform off, making them invisible. This will allow us to turn them on later.
  5. I would suggest finding an animated sprite for these.

Adding the Damage Behavior

All we need to do here is add logic to the Damage() method saying that when we are damaged, turn on their Transform.

  1. Open the Player script.
  2. Add variables:
    [SerializeField] private GameObject _rightEngine;
    [SerializeField] private GameObject _leftEngine;
  3. Reference the two sprites in the Player’s script component.
  4. Head down to the Damage() method.
  5. Now below the “_lives -=1" line, enter these:

So, when lives = 2, start the right engine, and if 1, start the left engine. Pretty simple logic for crucial parts of the game!

Test it out and see how it goes!

That was how to add VFX elements to the Player! Next, I will go over how to apply Post-Processing and make this game up to AAA standards!

Thank you for your time!



Marcus Cohee

I am starting Unity and learning the ropes as I go! Let’s take this journey together!