On some platforms the "Shake effect" does not have any effect (or very little effect).
That is should work deterministically on all platforms.
The "Shake effect" is added to the camera by doing this:
camera.viewfinder.add(
MoveEffect.by(
Vector2(5, 5),
NoiseEffectController(
duration: 0.2,
noise: PerlinNoise(frequency: 400),
),
),
);
You can also just run this example, where you can see that it doesn't work in Firefox, but it works in chrome:
https://examples.flame-engine.org/#/Collision_Detection_Raycasting_Max_Distance
No response
No response
No response
Output of: flutter doctor -v
Web
It's a bit unclear which platforms are being affected, some have been reported here:
https://stackoverflow.com/questions/78551176/flutter-flame-camera-shake-effect-not-working
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too