ft: switch to click movement

This commit is contained in:
2026-03-07 14:33:22 +01:00
parent a59255d9d6
commit 01f1b52086
9 changed files with 50 additions and 19 deletions

View File

@@ -69,3 +69,9 @@ func _on_sight_body_entered(body: Node2D) -> void:
func _on_attack_cooldown_timer_timeout() -> void:
can_attack = true
func _on_collision_input_event(viewport: Node, event: InputEvent, shape_idx: int) -> void:
if event is InputEventMouseButton and event.button_index == MOUSE_BUTTON_LEFT and event.pressed:
if player:
player.target = self.collision