diff --git a/core/src/com/mygdx/Tools/EnemyController.java b/core/src/com/mygdx/Tools/EnemyController.java index 68590a5..77c2ffc 100644 --- a/core/src/com/mygdx/Tools/EnemyController.java +++ b/core/src/com/mygdx/Tools/EnemyController.java @@ -58,7 +58,7 @@ public void update() { Vector2 enemyPos = enemy.getPosition(); Vector2 playerPos = player.getPosition(); - if (MathWizard.inRange(enemyPos.x, playerPos.x, 20 / Constants.PPM)) { + if (MathWizard.inRange(enemyPos.x, playerPos.x, 16 / Constants.PPM)) { enemy.setMovementState(Constants.MSTATE.HSTILL); if (MathWizard.inRange(enemyPos.y, playerPos.y, 8 / Constants.PPM)) { ((ArmourGoblin) enemy).attack();