0 votes

I want to make an Enemy start to move but with the same direction of the player "to follow it" You can get that Vector2 to match your directions

in Projects by (90 points)

1 Answer

0 votes

The simplest way would be to get the players position then add a Vector2 offset.

var offset : Vector2
enemy.position = player.position + offset

The offset will have to be changed depending on any other functionalities you want on the enemy.

by (3,141 points)
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.
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 webmaster@godotengine.org with your username.

Categories