Okay so I set up a camera shake with a script I found online. I really like the shake effect. I have it set up to enable the shake script when the enemy jumps down from a ledge and then it deactivates shortly after… The only problem is that it offsets my camera position values, it’s mostly the Y value screwing things up. I need the camera to go back to following the cameras transform values from right before the shake is applied… I am totally stumped on this, if anyone could give me some tips as to why it’s not working I would be very grateful.
camera shake (broken) · GitHub (this is the shake script)
gist:17c172dba11ce83d611b · GitHub (this one is the camera follow script)