Chapter 22: Damage VFX Animated Sprite

Joshua Kidd
Nov 4, 2023

--

  • Drag the damage sprite to the player in the hierarchy.
  • Rename the sprites Left_Damage and Right_Damage.
  • Locate the Damage sprite anywhere on the Left and Right of your Player.
  • Uncheck the Damage Sprites so they don’t appear at the start.

Update the player script so that the Damage Sprites will show when damaged

Drag the Damage Sprites attracted to the player by clicking the player and dragging the sprites to the variables with the same names.

When the player takes damage and they only have two lives left, choose a side that will be damaged, and when they player gets down to one life, the opposite side will be damaged.

--

--