How can i make the enemy go to the character position?
问题 What my game has is a character in a preset position in a 2d-game mobile(x=0.33, y=9.48, z=0). I have enemys that are spawn from different angles of the screen with a movement script. But i have to modify the script so it moves towards the character position always. Tried to set the position of the enemy = with character position. but that doesnt work. Anyone has any idea how can i do that? here is the script: /// //Speed - essential : true ? let speed; let enabled = false; let phys; function