Anyone have 2D camera shake working in Godot 4?

I've found setting .offset no longer a viable way to shake a camera since it will move the screen outside of it's limits.

And if you are close to the limit, then the camera won't shake by setting .position.

So there must be a calculation to see if setting the .offset will make the camera outside of it's limits?

I ended up getting decent shake with .offset, and just adding some graphics outside the visible screen edge.

I used OpenSimplexNoise to provide random shake values in v3.
What I found is that in v4 the new FastNoiseLite really needs to have a good .frequency setting, the default provides tame values.

    davek This video might help, I did the same with Godot4 and it's work the same as in 3.x used by the author.