How can I make a camera shake effect like Earthquake or Explosion?
I need a guide of how can I achieved it.
serverIess
(serverIess)
September 21, 2021, 1:49pm
#2
Please use the search in future before asking for support.
The Unity Asset Store has a free asset called EZ Camera Shake , which I have ported to Roblox.
Module:
GitHub repository:
The original author of the Unity3D asset, Road Turtle Games, gave me written permission via email to make and open-source this port to Roblox. I contacted the developer since there was no licensing information available for the Unity3D asset.
Example of the module using the Explosion preset:
Example code:
local camShake = CameraShaker.new(Enum.RenderPriority.Ca…
2 Likes
Ok, I expected this answer, but what I’m asking for is how can I code it myself and change the shake power?
serverIess
(serverIess)
September 21, 2021, 2:05pm
#4
Take a look at the source code to see how it is done. All this comes down to in the end is camera manipulation.
It looks like you are able to change the shake power with the CameraShakeInstance. In fact, there are presets such as earthquakes and explosions like mentioned in your post.
-- Camera Shake Presets
-- Stephen Leitnick
-- February 26, 2018
--[[
CameraShakePresets.Bump
CameraShakePresets.Explosion
CameraShakePresets.Earthquake
CameraShakePresets.BadTrip
CameraShakePresets.HandheldCamera
CameraShakePresets.Vibration
CameraShakePresets.RoughDriving
--]]
local CameraShakeInstance = require(script.Parent.CameraShakeInstance)
This file has been truncated. show original
4 Likes
Thank you for the answer. Imma take a look at it.