Solo_Week2_June2026Game/Scripts/trigger.gd
catherinehoang44 3d9b63f30b Revert to ALOT baseline for solo week 2 work.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 14:14:09 -04:00

17 lines
404 B
GDScript

extends Area2D
signal areaTriggerSignal(body, trigger)
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
print("Trigger is ready")
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
func _on_body_entered(body: Node2D) -> void:
print("YEAHHHHH TRIGGERED")
areaTriggerSignal.emit(body, self)