How to Add Camera Shake on Player Hit - Unity 2022 Tutorial with Cinemachine
Chris' Tutorials
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 Me https://www.patreon.com/christutorials https://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=on Save Money Shopping Online with Honey Extension ►► https://joinhoney.com/ref/qd04c25
00:00 - What to Expect 00:13 - Cinemachine Requirement (Unity Package Manager) 01:25 - Receiving OnHit through static UnityActions (Events) 03:40 - Camera Shake Script 08:41 - Adding a Shake Timer 10:37 - Tweaking Shake Settings 11:32 - Playing on Hit Sound
"Voxel Revolution" Kevin MacLeod (incompetech.com) Licensed under Creative Commons: By Attribution 4.0 License http://creativecommons.org/licenses/by/4.0/ ... https://www.youtube.com/watch?v=xzb6Mt5GomA
76596928 Bytes