0 votes

Hi,

i have a Player that moves with tween:

set_process(false)
$Tween.interpolate_property(self, "position", self.position, target_position,0.15, Tween.TRANS_LINEAR, Tween.EASE_IN)
$Tween.start()
yield($Tween, "tween_completed")
set_process(true)

The Camera is a child of Player. When i have "Project Settings, General, Display, Window, Use Vsync = ON" the movement and scrolling is totally choppy and stuttering. The fps are steady at 60.

When i have "Use Vsync = OFF" the scrolling is totally smooth and perfect. The fps are 2500+.

Any idea why the scrolling at 60 fps is messed up?

I use Godot 3.2 Stable. It is a very tiny project as i am just starting. No game logic at all. Just a TileMap and a player moving.

asked Mar 10 in Engine by Puresilence2002 (17 points)

Which kind of PhysicsBody is the player node using? Is it a KinematicBody or RigidBody?

Hi Calinou,

it is just a Node2D. I need no physics. I use the tween to move the character like in the demo project "2D/gridbasedmovement".

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 How to use this Q&A? before posting your first questions.