Make the camera shake when the player it targets takes damage in a 2D unity game. This uses the Cinemachine virtual camera to create the effect.
Scripts and Assets ➣ https://www.patreon.com/posts/73121450
➣ Downloadable Assets, Video Courses, and Other Places to Follow Mehttps://www.patreon.com/christutorialshttps://chris-tutorials.itch.io/https://linktr.ee/ChrisTutorials
◢ Chris Recommends ◥Master Skills with Skillshare Video Courses ►► https://www.skillshare.com/r/user/christutorials?gr_tch_ref=onSave Money Shopping Online with Honey Extension ►► https://joinhoney.com/ref/qd04c25
00:00 - What to Expect00:13 - Cinemachine Requirement (Unity Package Manager)01:25 - Receiving OnHit through static UnityActions (Events)03:40 - Camera Shake Script08:41 - Adding a Shake Timer10:37 - Tweaking Shake Settings11:32 - Playing on Hit Sound