Stutter with a moving platform using Tween movement

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Illyas_Onii

Hi there! I’m having stuttering issues with a specific type of platform in my game, a vertical moving platform. Right now I’m moving it with a tween with the interpolate_property function, where the platform will tween itself from the position its currently at, and the next position is knows to go to. However I’m not quite sure if this is causing the issue, of if there is some deeper engine issue I’m not aware of.

Here is the line of code used for moving the platform:
the way it loops through all its checkpoints is by a signal of tween_completed

tween.interpolate_property(self, "position", self.position, nextCheckpoint, 
		speed,Tween.TRANS_LINEAR, Tween.EASE_IN_OUT)

video showing the bug
alt link in case the embed doesn’t work:

Have you tried moving it without the tween (physics_process) to see if the issue occurs? I think moving physics objects with tweens might cause issues.

exuin | 2021-06-06 06:48