Draw text on sprite

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

Hello,

I’m new to Godot and wondering how I can draw simple text at the position of a moving sprite.
draw_string always appears to be underneath the sprite so it is always hidden.

:bust_in_silhouette: Reply From: DavidPeterWorks

I would a simply add label node to the sprite node as a child and change that label.text property from a script.