How to edit speed in func move_to

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By DodoIta
:warning: Old Version Published before Godot 3 was released.

Hey guys,
I’m trying to use the move_to function in a KinematicBody2D to move it to the centre of the screen, like the following.

func _ready():
    set_fixed_process(true)

func _fixed_process(delta):
    move_to(center)

The problem is that the object is thrown there really fast and I was wondering if there’s any way to control its speed.

:bust_in_silhouette: Reply From: Zylann

Speed doesn’t make sense using move_to, you might want to use move every frame instead.
It was asked already: setting "move_to()" speed ? - Archive - Godot Forum

Sorry, I forgot to check first.
Thank you!

DodoIta | 2017-02-23 19:34