[Godot 2.1] Problem with animationPlayer and sprite modulate
I want to animate a sprite to fade out the alpha value of its color, but the color is set through code, and when I'm making the animation I don't know what color that will be. So during gameplay, my animation sets the sprite's color to whatever I set at the start of the animation, instead of using the one the sprite already has.
I thought of using a function track to call
get_modulate() from the sprite, but I'm not seeing how I could use that to tell the animation player about the color and apply it to the animation, before playing it...
Anyone has any suggestions?