for some reason I can’t use .clear in my code:
extends Control
func _ready():
** var prompts = [“tomer”, “coding”, “games”, “exited” ]**
** var story = “there was a man named %s, and he liked learning %s, his dreams where to make %s for a living, and while learning he felt %s for the future”**
** $VBoxContainer/DisplayText.text = story % prompts **
func _on_PlayerText_text_entered(new_text):
** $VBoxContainer/DisplayText.text = new_text**
$VBoxContainer/DisplayText.clear()
it always says Invalid call. Nonexistent function ‘clear’ in base ‘label’.