0 votes

I have a moving platform node that has this structure:


And this is the code for its movement:

func _physics_process(delta):
    position += Vector2(150,0)*delta

My player has a Camera2D with smoothing_enabled = true.

When smoothing is enabled and the player is on the platform, I notice jittering, like in this video. I turned off my art assets, which makes it hard to see what's going on, but my player is standing on the platform, which is moving right with constant velocity. The player standing on the platform also jitters, in step with it.

In full screen there is no jittering at all. If smoothing is disabled, there is also no jittering. So the problem seems to be with the smooth camera when in windowed mode.

Any ideas how to fix it?

in Engine by (1,577 points)
edited by

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.