This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

Hi guys,

So I wanted to make a blinking button. I used a TexturedButton node and added a child Tween node.

Then from my script, I wrote a function that I call whenever the condition for the blinking button is fulfilled.

The code is similar to this:

func blink:

$tween.interpolate_property(button, "modulate:a", 1, 0, 0.3)


yield($tween, "tween_completed")

$tween.interpolate_property(button, "modulate:a", 0, 1, 0.1)


My problem is that whenever I call the function my button becomes transparent and remains that way.

I've even tried running just the last tween (modulate:a, 0, 1, 0.1) so that it ends up at full opacity (1) but the button still ends up being transparent.

so, I'm assuming it's a bug with the buttons?

Also, is there any way of making a blinking button in Godot, using the Button or TexturedButton nodes?

Godot version 3.2.3 stable
in Engine by (12 points)

Please log in or register to answer this question.

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.