2024-05-03 01:37:20 +02:00
|
|
|
extends Entity
|
2024-04-26 03:57:07 +02:00
|
|
|
class_name Cthulhu
|
|
|
|
|
|
|
|
|
|
|
|
func _on_dragged(_cursor: Cursor) -> void:
|
2024-05-03 01:37:20 +02:00
|
|
|
set_flying()
|
2024-04-26 03:57:07 +02:00
|
|
|
animator.play(&"drag_start")
|
|
|
|
|
|
|
|
func _on_fallen() -> void:
|
2024-05-03 01:37:20 +02:00
|
|
|
set_grounded()
|
2024-04-26 03:57:07 +02:00
|
|
|
animator.play(&"RESET")
|
2024-04-30 05:17:57 +02:00
|
|
|
|
2024-05-02 05:42:45 +02:00
|
|
|
func _on_gold_spawner_spawned(entity:Node2D) -> void:
|
|
|
|
entity.scale *= 2
|
|
|
|
entity.get_node("Collectible").quantity = 25
|
|
|
|
entity.get_node("MoveStraight").randomize_direction()
|
|
|
|
entity.get_node("MoveStraight/Priority").priority_alternative()
|