A collection of scripts to enhance the feel of your games
This is a drag & drop script that shakes your camera with a single function. It's all done using the Cinemachine Unity package.
Step-by-step Guide
- In Unity, install the Cinemachine package from the Package Manager window.
- Right-click in the hierarchy and, under Cinemachine, create a new Virtual Camera (or 2D Camera)
- Near the bottom of the Cinemachine Virtual Camera component find Noise. Set this to Basic Multi Channel Perlin
- Finally, add the Camera Shaker script to an object in the scene
That's everything! Call the Basic or Smooth Shake function whenever you want some Camera Shake.
A script to make a spite flash! Designed for hit flashes to show when a player or enemy takes damage.
Used to freeze time for a short duration. Can be used to further emphasise events in game. eg: enemy's death