I feel this should be incredibly easy, but it seems to be crazy difficult to figure out. I just want to tween a runtime created label in Godot 4 and have the text fade out after a couple of seconds.
The Tween documentation is very poor on explaining the parameters to the tween_property() method, and when you throw in the fact that themes and theme overrides are involved, forming the correct parameters is very convoluted. It took me hours to get the setup and syntax right to figure out how to do the background color, which is not part of a Label, it’s part of a Control. I thought the label color would be easier as at least it’s a label property, but alas I have failed to figure the syntax.
I thought I had it, and had running code, but no fade happened. I’ve seen others ask but not get answers, and both google and ChatGPT have failed as all the results I found were for Godot 3, not 4. Can anyone provide an example of creating a label in code, setting the font color, and then tweening it to fade out after a couple of seconds?
Thanks.