Hi. Im new here in Godot, I want something that when you touch or click the player it will follow you around the screen.

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

If you were aware of the game everwing. I want something like that. I’m using kinematic body 2d
Sorry for my English. Thanks in advanced

:bust_in_silhouette: Reply From: Diet Estus

You may want to just continuously tween the player’s global position to the global position of the cursor.

You can do this using a Tween node and its interpolate_property() method. The property being interpolated is the Player’s global_position.

Make calls to Input singleton to get the current Input to know where the destination should be.

(These are rough ideas for you to look into, not a detailed plan.)

Thank you for respond. I made it. But my only problem now is when I touch my player and drag, It can go beyond the screen. Plsss help me. Sorry for my English again.

Ryan Monte gammad | 2018-05-18 14:36