Damage VFX using Animated Sprites in Unity

Recently implemented a bit of VFX to display damage to the player’s avatar in this 2D Space Shooter. For the first two hits, either the left or right damaged engine GameObjects will be set to active (and this damage will be repaired if the player gets a health powerup). I’ve got the two GameObjects in a small array on the Player class, and each of them has a Sprite Renderer and animator in order to achieve the desired burning and smoking effect.

I’m coupling this with some UI to display the player’s remaining lives, so hopefully doubling-down on the visual feedback to let the player know when they’re on the verge of being destroyed.

Not too much more to report on this one; mostly used the same techniques used previously for creating an animation using a series of textures 😉