channel-switcher/games/platformer/tv_remote.gd

20 lines
391 B
GDScript3
Raw Normal View History

2025-05-16 01:29:12 +10:00
extends AnimatedSprite2D
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
2025-05-17 15:54:40 +10:00
hide()
2025-05-16 01:29:12 +10:00
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
func _on_broken_remote_area_entered(area: Area2D) -> void:
2025-05-17 15:54:40 +10:00
if(area.get_parent().name == "Player"): # i knew this would happen
queue_free()