How do I use a text input in a TextEdit to activate an event such as an AnimatedSprite

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

For example:
textinput = str($TextEdit.gettext())

If text_input == “fireball”

:bust_in_silhouette: Reply From: kidscancode

If you want this to happen when the text changes, you should use TextEdit’s text_changed signal.

func _on_TextEdit_text_changed():
    if $TextEdit.text == "fireball":

Thanks a lot.
How do I allow a specific word to activate a specific event?
For example I type fireball press enter and the my fireball AnimatedSprite plays.

Uzzi | 2019-01-05 20:21