0 votes

I prototyped out an arcadey-style effect of flashing text (1980s "white-red-blue-white" cycle) using CanvasModulate + AnimationPlayer on a Label node, which worked great until I discovered that CanvasModulate affects everything on the scene, not just the node it's attached to.

Instead I decided to just change the text color directly for every label, except that whenever I open up the AnimationPlayer panel, I the option to select a custom color for the label disappears.

How can I animate a color change for a node?

EDIT: apparently a bug: https://github.com/godotengine/godot/issues/7001

in Engine by (34 points)
edited by

whenever I open up the AnimationPlayer panel, I the option to select a custom color for the label disappears

Never seen this. Just tested and I can use the Font Color property of the Label in the AnimationPlayer just fine.

1 Answer

+1 vote
Best answer

You most certainly should with Custom Colors > Font Color.

I'm not having any issues with it.

Video

by (5,248 points)
selected by

Thanks for the sanity check. I think I've hit a bug -- or at least a very strange behavior -- in Godot. https://github.com/godotengine/godot/issues/7001 -- for anyone else Googling, the "custom color" field disappears after you assign a label a theme, even though that field still works in the animator if animate it beforehand...

Oh my, yeah that is a tricky. I wonder if it's like that because of the dynamic fonts.

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 Frequently asked questions and 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 [email protected] with your username.