1
Fork 0
mirror of https://github.com/Steffo99/hella-farm.git synced 2024-10-16 06:17:35 +00:00
hella-farm/entities/cthulhu.gd
2024-05-03 01:37:20 +02:00

17 lines
432 B
GDScript

extends Entity
class_name Cthulhu
func _on_dragged(_cursor: Cursor) -> void:
set_flying()
animator.play(&"drag_start")
func _on_fallen() -> void:
set_grounded()
animator.play(&"RESET")
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()