Problem with EZ Camerashaker

Hi devs,

I’m certain most of you are already familiar with EZ Camershaker, which uses perlin noise to simulate realistic camshakes.
Recently I encountered a problem that causes my visuals quality to decrease.

  1. What is the issue? Include screenshots / videos if possible!
    Everytime when activating a camershake with Shaker:Start(), the results get more rough to a point where it gets unbearable to watch.

  2. What do you want to achieve? Keep it simple and clear!
    I want my camera shake effect to have the same roughness everytime and not increase per activation.

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I’ve looked at several posts on the devforum, one of them that included an issue similair to mine, but got resolved because of an fps unlocker.

I’d appreciate if anyone could help me solve my problem.

Localscript

-- sample code
local CameraShake = require(game:GetService("ReplicatedStorage"):WaitForChild("CameraShaker"))
local camShake = CameraShake.new(Enum.RenderPriority.Camera.Value, function(shakeCf)
	game.Workspace.CurrentCamera.CFrame = game.Workspace.CurrentCamera.CFrame * shakeCf
end)
camShake:Start()
  1. I want my camera shake effect to have the same roughness everytime and not increase per activation.

have you tried writing an if statement to check whether camera shake is active before activating another one?

local CamShakeActive: boolean = false

if not CamShakeActive then
    camShake:Start()
end
1 Like

I fixed my code by only creating 1 camershake instance and adding shakes onto that one by remote events, instead of creating multiple instances.
Thanks for the reply, though!

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.