The Shaggy Dev | How I do screen shake in Godot @TheShaggyDev | Uploaded February 2022 | Updated October 2024, 38 minutes ago.
The basic way to do screen shake is to just apply a random offset each frame to the camera, but in this video I show how I use Godot's OpenSimplexNoise class to generate noise and get a more fluid and customizable screen shake. This can work great for both intense shakes and gentle sways.
Sample source code to compare: github.com/theshaggydev/the-shaggy-dev-projects/tree/main/projects/godot-3/screen-shake
Text version of this post: shaggydev.com/2022/02/23/screen-shake-godot
Godot documentation: docs.godotengine.org/en/stable/classes/class_opensimplexnoise.html
The basic way to do screen shake is to just apply a random offset each frame to the camera, but in this video I show how I use Godot's OpenSimplexNoise class to generate noise and get a more fluid and customizable screen shake. This can work great for both intense shakes and gentle sways.
Sample source code to compare: github.com/theshaggydev/the-shaggy-dev-projects/tree/main/projects/godot-3/screen-shake
Text version of this post: shaggydev.com/2022/02/23/screen-shake-godot
Godot documentation: docs.godotengine.org/en/stable/classes/class_opensimplexnoise.html