Files
EGJ25/scenes/interactibles/interactible.gd
minimata e59f0e9e6a
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 6s
Create tag and build when new code gets to main / Export (push) Successful in 3m25s
feat: small world and interactibles
2025-06-28 10:23:35 +02:00

18 lines
434 B
GDScript

extends Area2D
class_name Interactible
@export_file("*.tscn") var scene_to_trigger : String
@onready var rich_text_label: RichTextLabel = $RichTextLabel
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
rich_text_label.visible = false
func _on_body_entered(body: Node2D) -> void:
rich_text_label.visible = true
func _on_body_exited(body: Node2D) -> void:
rich_text_label.visible = false