ft: switch to click movement

This commit is contained in:
djaidjai committed 2026-03-07 14:35:07 +01:00
1 parent a59255d9d6
commit 01f1b52086
9 files changed
+50 -19

No files matched your search

@@ -42,3 +42,9 @@ func become_injured() -> void:
func _on_sight_body_entered(body: Node2D) -> void:
if body.is_in_group("predator") or (health < maxHealth and body.is_in_group("player")):
fsm.transition_to_next_state(fsm.States.FLEEING, {"threat": body})
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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.