How do I use specific text that I enter into a textbox to activate an event?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Uzzi

For example:
I type fireball into a textbox press enter and the fireball Animatedsprite play.

:bust_in_silhouette: Reply From: SIsilicon
extends TextEdit

func _ready():
    # omit this if you know how to connect signals in the editor.
    connect('text_changed', self, '_on_text_changed')

func _on_text_changed():
    if text == 'fireball':
        # play the fireball animation and such

That a lot your a real help!!

Uzzi | 2019-01-06 22:42