Uploaded October 2022 | Updated September 2026, 2 weeks ago
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 ➣ patreon.com/posts/73121450
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
patreon.com/christutorials
chris-tutorials.itch.io
https://linktr.ee/ChrisTutorials
◢ Chris Recommends ◥
Master Skills with Skillshare Video Courses ►► skillshare.com/r/user/christutorials?gr_tch_ref=on
Save Money Shopping Online with Honey Extension ►► 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
creativecommons.org/licenses/by/4.0
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 ➣ patreon.com/posts/73121450
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
patreon.com/christutorials
chris-tutorials.itch.io
https://linktr.ee/ChrisTutorials
◢ Chris Recommends ◥
Master Skills with Skillshare Video Courses ►► skillshare.com/r/user/christutorials?gr_tch_ref=on
Save Money Shopping Online with Honey Extension ►► 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
creativecommons.org/licenses/by/4.0





