#Getting the enemy to follow the player.
1 messages · Page 1 of 1 (latest)
Bumping this
actually new problem
trying to get this to work
but any time the player enters the detection zone
it triggers
Get the direction from the enemy to the player and change the enemy's velocity based on it
velocity.x += enemy_position.direction_to(player_position).x * speed * delta