0 votes

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

asked May 4 in Projects by Yasin (53 points)

1 Answer

+1 vote

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

answered May 4 by Vignesh S (75 points)

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.

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 How to use this Q&A? before posting your first questions.