TextEdit Game

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

Hi im just new in godot and is there any tutorial or previous works on how to make a character move based on the text in TextEdit? ex. If the user type “Walk Right”, the animation player will play walking right and the animatedSprite will also move to the right.

:bust_in_silhouette: Reply From: exuin

You will need to parse the TextEdit’s text. It’s the text property. You can do text.split("\n") to get each line separately and then parse each line by itself.