2024-05-02 23:37:20 +00:00
|
|
|
extends Entity
|
2024-04-26 01:57:07 +00:00
|
|
|
class_name Watcher
|
|
|
|
|
|
|
|
|
|
|
|
func _on_dragged(_cursor: Cursor) -> void:
|
2024-05-02 23:37:20 +00:00
|
|
|
set_flying()
|
2024-04-26 01:57:07 +00:00
|
|
|
animator.play(&"drag_start")
|
|
|
|
|
|
|
|
func _on_fallen() -> void:
|
2024-05-02 23:37:20 +00:00
|
|
|
set_flying()
|
2024-04-26 01:57:07 +00:00
|
|
|
animator.play(&"RESET")
|
2024-04-29 01:20:27 +00:00
|
|
|
|
|
|
|
func _on_trapped() -> void:
|
2024-05-02 23:37:20 +00:00
|
|
|
set_trapped()
|
2024-04-29 01:20:27 +00:00
|
|
|
|
|
|
|
func _on_freed() -> void:
|
2024-05-02 23:37:20 +00:00
|
|
|
set_flying()
|
2024-04-30 02:49:00 +00:00
|
|
|
|
2024-05-02 23:37:20 +00:00
|
|
|
func _on_gold_spawner_spawned(entity:Node2D) -> void:
|
|
|
|
entity.get_node("MoveStraight").speed = 50
|
|
|
|
entity.get_node("MoveStraight").randomize_direction()
|
|
|
|
entity.get_node("MoveStraight/Priority").priority_alternative()
|