Is there method to make object move to mouse click?

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

Is there a MoveToPoint like method in Godot? For instance, I could click on a spot and make an object move toward it?

:bust_in_silhouette: Reply From: kidscancode

If you’re using a KinematicBody2D, you can use move_to():
http://docs.godotengine.org/en/stable/classes/class_kinematicbody2d.html

thanks you for your help

ondesic | 2017-04-07 13:31