Damage VFX using Animated Sprites in Unity

  • Create an engine animation
  • Rename the sprite in hierarchy to LeftEngineDamage
  • Duplicate and rename to RightEngineDamage
  • Place both as children in Player gameobject
  • Place the Left and Right Engine damage gameobjects in a good place in player. Set their scale as desired.
  • In the player script, create a reference for both gameobjects
  • Deactivate them in Start ( )
  • Activate LeftEngineDamage if lives == 2 and RightEngineDamage if lives == 1

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

GitOps Fundamentals — CNCF Roadmap

YSL.IO 💎- Win $6000 and Double your sYSL!

LeetCode — Can Place Flowers

4 Key Components of a Storefront for Headless Commerce

Docker Containers and localhost: Cannot Assign Requested Address

Trick JavaServer Faces, load your bean data from the client side

Bash aliases are awesome

How to program a simple numbers game using only numpy and pandas

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Hernando Nieto Jaramillo

Hernando Nieto Jaramillo

Unity developer

More from Medium

Are You Bothered by PS5 Error Code CE-108262–9? Here Are 6 Fixes

How Objects Behave

RESTful Web Applications.

Hack The Box — RastaLabs Pro Lab Review