2024-05-03 01:37:20 +02:00
|
|
|
extends Entity
|
2024-04-22 00:09:04 +02:00
|
|
|
class_name Monocle
|
|
|
|
|
|
|
|
|
2024-04-22 00:56:35 +02:00
|
|
|
func _on_dragged(_cursor: Cursor) -> void:
|
2024-05-03 01:37:20 +02:00
|
|
|
set_flying()
|
2024-04-24 04:16:09 +02:00
|
|
|
animator.play(&"drag_start")
|
2024-04-22 00:56:35 +02:00
|
|
|
|
|
|
|
func _on_fallen() -> void:
|
2024-05-03 01:37:20 +02:00
|
|
|
set_grounded()
|
2024-04-24 04:16:09 +02:00
|
|
|
animator.play(&"RESET")
|
2024-04-29 03:20:27 +02:00
|
|
|
|
|
|
|
func _on_trapped() -> void:
|
2024-05-03 01:37:20 +02:00
|
|
|
set_trapped()
|
2024-04-29 03:20:27 +02:00
|
|
|
|
|
|
|
func _on_freed() -> void:
|
2024-05-03 01:37:20 +02:00
|
|
|
set_grounded()
|