0 votes

With Godot 2 there was an opacity option for sprites which was editable with the Animation Player. Now with Godot 3 I can add the full color RGBA (via "modulate" parameter) to the Animation Player timeline only. I see no Option to modify the Alpha without setting the RGB or modulate the RGB without setting the Alpha.

Or there a hidden timeline options like
:modulateA
:modulate
RGB
:modulateR
:modulate
G
:modulate_B

in Engine by (65 points)

1 Answer

0 votes
Best answer

Hello,

When keying the modulate property, this property path is used by the animation player: Sprite2D:modulate.
You can change it manually to Sprite2D:modulate:a to only key the a component of modulate (click on the name of the animation track to edit it).

Also, for exported values that have several components using bezier curves automatically creates one track per property.

However if you want to animate the color and the alpha of the same property in two different tracks you have to hack it by adding a Sprite2D:modulate track where you animate RGB and a Sprite2D:modulate:a below which overrides the alpha of the first track.

by (728 points)
edited by

Thank you!!!

I wonder why I do not see these special options in the method selecting window if I add a new track related to a sprite...

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.