From 88bed3ed055f1bd811cff77b0afa6c2662dbc556 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 25 Nov 2023 16:40:28 +0100 Subject: [PATCH] only display if player --- obstacles/dialog.gd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/obstacles/dialog.gd b/obstacles/dialog.gd index f25f572..36a146f 100644 --- a/obstacles/dialog.gd +++ b/obstacles/dialog.gd @@ -8,4 +8,5 @@ extends Area3D func _on_body_entered(body): - textbox.display(text, duration) + if body is Player: + textbox.display(text, duration)