Creating a separate script where a character can be hit and take damage and setting up transitions to player or enemy character death states by checking the health of the character.
Reference Project Patreon Download ➣ / 2d-platformer-73894085
2D Crash Course Platformer Tutorial Playlist ➣ • 2D Platformer Crash Course in Unity 2022
Play the Project in Web Browser ➣ https://chris-tutorials.itch.io/platf...
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
/ christutorials
https://chris-tutorials.itch.io/
https://linktr.ee/ChrisTutorials
◢ Chris Recommends ◥
Master Skills with Skillshare Video Courses ►► https://www.skillshare.com/r/user/chr...
Save Money Shopping Online with Honey Extension ►► https://joinhoney.com/ref/qd04c25
00:00 - What to Expect
00:27 - Damageable Component Script
03:42 - Hit for Damage Method
06:49 - Testing Hit for Damage
07:37 - Transition to Death State
08:17 - Turning Off Transition to Self for Animation State
09:12 - Player Death State
11:24 - IsAlive Reference on Player Controller
12:26 - FadeRemoveBehaviour
Watch video How to Make Characters Take Damage - 2D Platformer Crash Course in Unity 2022 (Part 15) online without registration, duration hours minute second in high quality. This video was added by user Chris' Tutorials 08 November 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 10,12 once and liked it 12 people.