` I’ve just wanted to slowly darken the screen when the Godot game starts. It occurred to me that I could create a panel for this and darken it slowly, and since it seemed easy, I aimed to create a transparent panel and write code on it, but it doesn’t work. Maybe I can change the code or use another alternative method. I hope you can help me.
I guess it’s subjective then, because I find Tweens easier and faster to use than AnimationPlayer.
And you don’t need to manually start and kill the Tween, it’s done automatically. Your code can be simplified to this and will work just as fine
var tween = create_tween()
tween.tween_properly(self, "modulate:a", 0.0, 2.0)