0 votes

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.

in Engine by (570 points)

1 Answer

0 votes
Best answer

Speed doesn't make sense using move_to, you might want to use move every frame instead.
It was asked already: https://godotengine.org/qa/12570/setting-move_to-speed

by (29,092 points)
selected by

Sorry, I forgot to check first.
Thank you!

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 [email protected] with your username.