1
Fork 0
mirror of https://github.com/Steffo99/hella-farm.git synced 2024-11-28 19:14:23 +00:00
hella-farm/entities/cthulhu.gd

18 lines
432 B
GDScript3
Raw Normal View History

2024-05-02 23:37:20 +00:00
extends Entity
2024-04-26 01:57:07 +00:00
class_name Cthulhu
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_grounded()
2024-04-26 01:57:07 +00:00
animator.play(&"RESET")
2024-04-30 03:17:57 +00:00
2024-05-02 03:42:45 +00: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()