Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Camera still shaking with proxy time_step set to 0 #72

Open
rzuf79 opened this issue May 21, 2024 · 0 comments
Open

Camera still shaking with proxy time_step set to 0 #72

rzuf79 opened this issue May 21, 2024 · 0 comments

Comments

@rzuf79
Copy link

rzuf79 commented May 21, 2024

Noticed this while implementing pausing for my game. When the game is paused (by setting the proxy time step to 0) whilst the camera is shaking, the shake doesn't stop.

I implemented a Lazy Solution in my project by adding another check in camera.lua update function on line 429
if camera.shake and dt > 0 then

Making the shaking motion dt-dependent would prolly be slightly more elegant tho.

Including a screenie so you can suffer the unholy unstoppable shake as I did.

shakin_stevens

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant