Change the position of Position2D node in godot.

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

In my project there a enemy(position2D) node which instances obstacles.But as the player moves the enemy node is struck where it originally was. Can anyone tell me how can i move the enemy node as the player moves ?
Here is the Project

:bust_in_silhouette: Reply From: Vignesh S

@Yasin you can make the enemy node as a child of player node so wherever the player moves the enemy node also moves together

Thank for your reply.
But I need to make the enemy node move ahead of the player ; so as the player moves forward the enemy node get’s instanced.

Yasin | 2020-05-04 18:05