Godot Version
v4.3
Question
I have a collider that detects when the player enters and exits using signals. When entering text in a text label is assigned. when exiting the text is removed. However, when the player stands on the edge of the collider, it flips back and forth
code:
func _on_player_detector_body_entered(body: Node3D) → void:
if body.is_in_group(“player”):
body.get_node(“HUD/HUD/Text”).text = “[rainbow freq=1.0 sat=0.8 val=0.8][wave amp=50.0 freq=5.0 connected=1]Orange you glad you found me?”
func _on_player_detector_body_exited(body: Node3D) → void:
if body.is_in_group(“player”):
body.get_node(“HUD/HUD/Text”).text = “”